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) |
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 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