Package org.jboss.cdi.tck.impl.testng
Class SingleTestClassMethodInterceptor
- java.lang.Object
-
- org.jboss.cdi.tck.impl.testng.SingleTestClassMethodInterceptor
-
- All Implemented Interfaces:
org.testng.IMethodInterceptor,org.testng.ITestNGListener
public class SingleTestClassMethodInterceptor extends Object implements org.testng.IMethodInterceptor
ThisIMethodInterceptorfixes one or the other problem with CDI TCK test suite execution:- Run tests from single test class - it seems that Maven Surefire plugin is not able to run single test that is located outside src/test dir. If test class system property is set all test methods that don't belong to specified test class are excluded.
- Avoid randomly mixed test method execution - causing test archive deployments collisions. If test class system property is not set group test methods by test class.
- Author:
- Stuart Douglas, Martin Kouba
-
-
Field Summary
Fields Modifier and Type Field Description static StringTEST_CLASS_PROPERTY
-
Constructor Summary
Constructors Constructor Description SingleTestClassMethodInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<org.testng.IMethodInstance>intercept(List<org.testng.IMethodInstance> methods, org.testng.ITestContext context)
-
-
-
Field Detail
-
TEST_CLASS_PROPERTY
public static final String TEST_CLASS_PROPERTY
- See Also:
- Constant Field Values
-
-