Class TestContextAwareExecutionListener

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

    public class TestContextAwareExecutionListener
    extends org.springframework.test.context.support.AbstractTestExecutionListener
    This listener will inject the TestContext into a test if it supports the TestContextAware interface.
    • Constructor Detail

      • TestContextAwareExecutionListener

        public TestContextAwareExecutionListener()
    • Method Detail

      • beforeTestMethod

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