Class JUnit4CitrusSpringSupport

    • Field Detail

      • log

        protected final org.slf4j.Logger log
        Logger
      • citrus

        protected Citrus citrus
        Citrus instance
    • Constructor Detail

      • JUnit4CitrusSpringSupport

        public JUnit4CitrusSpringSupport()
    • Method Detail

      • prepareTestContext

        protected TestContext prepareTestContext​(TestContext testContext)
        Prepares the test context. Provides a hook for test context modifications before the test gets executed.
        Parameters:
        testContext - the test context.
        Returns:
        the (prepared) test context.
      • createTestLoader

        protected TestLoader createTestLoader​(String testName,
                                              String packageName,
                                              String source,
                                              String type)
        Creates new test loader which has TestNG test annotations set for test execution. Only suitable for tests that get created at runtime through factory method. Subclasses may overwrite this in order to provide custom test loader with custom test annotations set.
        Parameters:
        testName -
        packageName -
        source -
        type -
        Returns:
      • getTestCase

        protected TestCase getTestCase()
        Constructs the test case to execute.
        Returns:
      • variable

        public <T> T variable​(String name,
                              T value)
      • name

        public void name​(String name)
      • description

        public void description​(String description)
      • author

        public void author​(String author)
      • creationDate

        public void creationDate​(Date date)