Class TestSuiteExecutionListener

  • All Implemented Interfaces:
    org.springframework.core.Ordered, org.springframework.test.context.TestExecutionListener

    public class TestSuiteExecutionListener
    extends org.springframework.test.context.support.AbstractTestExecutionListener
    Test execution listener that will load a test suite instance from the application context and execute tasks before and after the test run. The tasks after are executed as ShutdownHook thread that is added to the JVM runtime.
    Author:
    Christoph Deppisch
    • Constructor Detail

      • TestSuiteExecutionListener

        public TestSuiteExecutionListener()
    • Method Detail

      • prepareTestInstance

        public void prepareTestInstance​(org.springframework.test.context.TestContext testContext)
                                 throws Exception
        Specified by:
        prepareTestInstance in interface org.springframework.test.context.TestExecutionListener
        Overrides:
        prepareTestInstance in class org.springframework.test.context.support.AbstractTestExecutionListener
        Throws:
        Exception