Package com.consol.citrus.junit
Class JUnit4Helper
- java.lang.Object
-
- com.consol.citrus.junit.JUnit4Helper
-
public final class JUnit4Helper extends Object
- Author:
- Christoph Deppisch
-
-
Field Summary
Fields Modifier and Type Field Description static StringBUILDER_ATTRIBUTE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TestCaseRunnercreateTestRunner(CitrusFrameworkMethod frameworkMethod, Class<?> testClass, TestContext context)Creates new test runner instance for this test method.static List<org.junit.runners.model.FrameworkMethod>findInterceptedMethods(org.junit.runners.model.FrameworkMethod method, String type, String[] testNames, String testPackageName, String[] packagesToScan, String[] sources)Construct list of intercepted framework methods with proper test name, package name and source from given framework method and its Citrus test annotation information.static voidinvokeTestMethod(Object target, CitrusFrameworkMethod frameworkMethod, TestContext context)Invokes test method based on designer or runner environment.
-
-
-
Field Detail
-
BUILDER_ATTRIBUTE
public static final String BUILDER_ATTRIBUTE
- See Also:
- Constant Field Values
-
-
Method Detail
-
invokeTestMethod
public static void invokeTestMethod(Object target, CitrusFrameworkMethod frameworkMethod, TestContext context)
Invokes test method based on designer or runner environment.- Parameters:
target-frameworkMethod-context-
-
createTestRunner
public static TestCaseRunner createTestRunner(CitrusFrameworkMethod frameworkMethod, Class<?> testClass, TestContext context)
Creates new test runner instance for this test method.- Parameters:
frameworkMethod-testClass-context-- Returns:
-
findInterceptedMethods
public static List<org.junit.runners.model.FrameworkMethod> findInterceptedMethods(org.junit.runners.model.FrameworkMethod method, String type, String[] testNames, String testPackageName, String[] packagesToScan, String[] sources)
Construct list of intercepted framework methods with proper test name, package name and source from given framework method and its Citrus test annotation information.- Parameters:
method-testNames-testPackageName-packagesToScan-sources-
-
-