[jboss-cvs] JBossAS SVN: r75692 - projects/microcontainer/trunk/dependency/src/tests/org/jboss/test/dependency/controller/test.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Jul 11 09:43:50 EDT 2008
Author: alesj
Date: 2008-07-11 09:43:50 -0400 (Fri, 11 Jul 2008)
New Revision: 75692
Modified:
projects/microcontainer/trunk/dependency/src/tests/org/jboss/test/dependency/controller/test/BadDependencyInfoTestCase.java
Log:
Add common counter field.
Modified: projects/microcontainer/trunk/dependency/src/tests/org/jboss/test/dependency/controller/test/BadDependencyInfoTestCase.java
===================================================================
--- projects/microcontainer/trunk/dependency/src/tests/org/jboss/test/dependency/controller/test/BadDependencyInfoTestCase.java 2008-07-11 13:38:16 UTC (rev 75691)
+++ projects/microcontainer/trunk/dependency/src/tests/org/jboss/test/dependency/controller/test/BadDependencyInfoTestCase.java 2008-07-11 13:43:50 UTC (rev 75692)
@@ -40,6 +40,8 @@
*/
public class BadDependencyInfoTestCase extends AbstractDependencyTest
{
+ private static final int numberOfInvocations = 10;
+
public BadDependencyInfoTestCase(String name)
{
super(name);
@@ -53,7 +55,7 @@
public void testDependencyInfoMethods() throws Throwable
{
Method[] methods = DependencyInfo.class.getDeclaredMethods();
- for(int i = 5; i >= 0; i--)
+ for(int i = numberOfInvocations; i >= 0; i--)
{
for (Method method : methods)
{
@@ -76,7 +78,7 @@
public void testDependencyItemMethodsOnMe() throws Throwable
{
Method[] methods = DependencyItem.class.getDeclaredMethods();
- for(int i = 5; i >= 0; i--)
+ for(int i = numberOfInvocations; i >= 0; i--)
{
for (Method method : methods)
{
@@ -96,7 +98,7 @@
public void testDependencyItemMethodsOnThem() throws Throwable
{
Method[] methods = DependencyItem.class.getDeclaredMethods();
- for(int i = 5; i >= 0; i--)
+ for(int i = numberOfInvocations; i >= 0; i--)
{
for (Method method : methods)
{
@@ -118,7 +120,7 @@
{
ControllerContext bean = createControllerContext("bean");
Method[] methods = DependencyItem.class.getDeclaredMethods();
- for(int i = 5; i >= 0; i--)
+ for(int i = numberOfInvocations; i >= 0; i--)
{
for (Method method : methods)
{
More information about the jboss-cvs-commits
mailing list