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.TestExecutionListener
beforeTestMethod
in class org.springframework.test.context.support.AbstractTestExecutionListener
Exception
public void afterTestMethod(org.springframework.test.context.TestContext testContext) throws Exception
afterTestMethod
in interface org.springframework.test.context.TestExecutionListener
afterTestMethod
in class org.springframework.test.context.support.AbstractTestExecutionListener
Exception
Apache Camel