public class StopWatchTestExecutionListener
extends org.springframework.test.context.support.AbstractTestExecutionListener
CamelTestSupport.| Modifier and Type | Field and Description |
|---|---|
protected static ThreadLocal<org.apache.camel.util.StopWatch> |
threadStopWatch |
| Constructor and Description |
|---|
StopWatchTestExecutionListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterTestMethod(org.springframework.test.context.TestContext testContext) |
void |
beforeTestMethod(org.springframework.test.context.TestContext testContext) |
int |
getOrder()
Returns the precedence that is used by Spring to choose the appropriate execution order of test listeners.
|
static org.apache.camel.util.StopWatch |
getStopWatch()
Exists primarily for testing purposes, but allows for access to the underlying stop watch instance for a test.
|
protected static ThreadLocal<org.apache.camel.util.StopWatch> threadStopWatch
public int getOrder()
SpringTestExecutionListenerSorter.getPrecedence(Class) for more.getOrder in interface org.springframework.core.OrderedgetOrder in class org.springframework.test.context.support.AbstractTestExecutionListenerpublic static org.apache.camel.util.StopWatch getStopWatch()
public void beforeTestMethod(org.springframework.test.context.TestContext testContext)
throws Exception
beforeTestMethod in interface org.springframework.test.context.TestExecutionListenerbeforeTestMethod in class org.springframework.test.context.support.AbstractTestExecutionListenerExceptionpublic void afterTestMethod(org.springframework.test.context.TestContext testContext)
throws Exception
afterTestMethod in interface org.springframework.test.context.TestExecutionListenerafterTestMethod in class org.springframework.test.context.support.AbstractTestExecutionListenerExceptionApache Camel