Class CamelSpringBootExecutionListener
java.lang.Object
org.springframework.test.context.support.AbstractTestExecutionListener
org.apache.camel.test.spring.junit5.CamelSpringBootExecutionListener
- All Implemented Interfaces:
org.springframework.core.Ordered
,org.springframework.test.context.TestExecutionListener
public class CamelSpringBootExecutionListener
extends org.springframework.test.context.support.AbstractTestExecutionListener
-
Field Summary
Modifier and TypeFieldDescriptionprotected static ThreadLocal
<org.springframework.context.ConfigurableApplicationContext> Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
afterTestMethod
(org.springframework.test.context.TestContext testContext) void
beforeTestClass
(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.void
prepareTestInstance
(org.springframework.test.context.TestContext testContext) Methods inherited from class org.springframework.test.context.support.AbstractTestExecutionListener
afterTestClass, afterTestExecution, beforeTestExecution
-
Field Details
-
threadApplicationContext
protected static ThreadLocal<org.springframework.context.ConfigurableApplicationContext> threadApplicationContext
-
-
Constructor Details
-
CamelSpringBootExecutionListener
public CamelSpringBootExecutionListener()
-
-
Method Details
-
getOrder
public int getOrder()Returns the precedence that is used by Spring to choose the appropriate execution order of test listeners. SeeSpringTestExecutionListenerSorter.getPrecedence(Class)
for more.- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
- Overrides:
getOrder
in classorg.springframework.test.context.support.AbstractTestExecutionListener
-
beforeTestClass
public void beforeTestClass(org.springframework.test.context.TestContext testContext) throws Exception - Specified by:
beforeTestClass
in interfaceorg.springframework.test.context.TestExecutionListener
- Overrides:
beforeTestClass
in classorg.springframework.test.context.support.AbstractTestExecutionListener
- Throws:
Exception
-
prepareTestInstance
public void prepareTestInstance(org.springframework.test.context.TestContext testContext) throws Exception - Specified by:
prepareTestInstance
in interfaceorg.springframework.test.context.TestExecutionListener
- Overrides:
prepareTestInstance
in classorg.springframework.test.context.support.AbstractTestExecutionListener
- Throws:
Exception
-
beforeTestMethod
public void beforeTestMethod(org.springframework.test.context.TestContext testContext) throws Exception - Specified by:
beforeTestMethod
in interfaceorg.springframework.test.context.TestExecutionListener
- Overrides:
beforeTestMethod
in classorg.springframework.test.context.support.AbstractTestExecutionListener
- Throws:
Exception
-
afterTestMethod
public void afterTestMethod(org.springframework.test.context.TestContext testContext) throws Exception - Specified by:
afterTestMethod
in interfaceorg.springframework.test.context.TestExecutionListener
- Overrides:
afterTestMethod
in classorg.springframework.test.context.support.AbstractTestExecutionListener
- Throws:
Exception
-