Class StopWatchTestExecutionListener

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

    @Deprecated
    public class StopWatchTestExecutionListener
    extends org.springframework.test.context.support.AbstractTestExecutionListener
    Deprecated.
    An execution listener that simulates the timing output built in to CamelTestSupport.
    • Field Detail

      • threadStopWatch

        protected static ThreadLocal<org.apache.camel.util.StopWatch> threadStopWatch
        Deprecated.
    • Constructor Detail

      • StopWatchTestExecutionListener

        public StopWatchTestExecutionListener()
        Deprecated.
    • Method Detail

      • getStopWatch

        public static org.apache.camel.util.StopWatch getStopWatch()
        Deprecated.
        Exists primarily for testing purposes, but allows for access to the underlying stop watch instance for a test.
      • beforeTestMethod

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

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