Class JUnit4Helper


  • public final class JUnit4Helper
    extends Object
    Author:
    Christoph Deppisch
    • 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 -