Author: lfryc(a)redhat.com
Date: 2010-11-08 02:06:57 -0500 (Mon, 08 Nov 2010)
New Revision: 19983
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/MatrixConfigurator.java
Log:
MatrixConfigurator fixed to accept the @Test annotated class in the body of transform(..)
method (it ignores the @Test annotated classes now)
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/MatrixConfigurator.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/MatrixConfigurator.java 2010-11-08
04:32:02 UTC (rev 19982)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/MatrixConfigurator.java 2010-11-08
07:06:57 UTC (rev 19983)
@@ -167,9 +167,11 @@
}
public void transform(ITestAnnotation annotation, Class testClass, Constructor
testConstructor, Method testMethod) {
- super.transform(annotation, testClass, testConstructor, testMethod);
- int invocationCount = createConfiguration(testMethod.getDeclaringClass(),
testMethod);
- annotation.setInvocationCount(invocationCount);
+ if (testMethod != null) {
+ super.transform(annotation, testClass, testConstructor, testMethod);
+ int invocationCount = createConfiguration(testMethod.getDeclaringClass(),
testMethod);
+ annotation.setInvocationCount(invocationCount);
+ }
}
public int createConfiguration(Class<?> realClass, Method realMethod) {
Show replies by date