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
Fields Modifier and Type Field Description protected static ThreadLocal<org.springframework.context.ConfigurableApplicationContext>threadApplicationContext
-
Constructor Summary
Constructors Constructor Description CamelSpringBootExecutionListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterTestMethod(org.springframework.test.context.TestContext testContext)voidbeforeTestClass(org.springframework.test.context.TestContext testContext)voidbeforeTestMethod(org.springframework.test.context.TestContext testContext)intgetOrder()Returns the precedence that is used by Spring to choose the appropriate execution order of test listeners.voidprepareTestInstance(org.springframework.test.context.TestContext testContext)
-
-
-
Field Detail
-
threadApplicationContext
protected static ThreadLocal<org.springframework.context.ConfigurableApplicationContext> threadApplicationContext
-
-
Method Detail
-
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:
getOrderin interfaceorg.springframework.core.Ordered- Overrides:
getOrderin classorg.springframework.test.context.support.AbstractTestExecutionListener
-
beforeTestClass
public void beforeTestClass(org.springframework.test.context.TestContext testContext) throws Exception- Specified by:
beforeTestClassin interfaceorg.springframework.test.context.TestExecutionListener- Overrides:
beforeTestClassin classorg.springframework.test.context.support.AbstractTestExecutionListener- Throws:
Exception
-
prepareTestInstance
public void prepareTestInstance(org.springframework.test.context.TestContext testContext) throws Exception- Specified by:
prepareTestInstancein interfaceorg.springframework.test.context.TestExecutionListener- Overrides:
prepareTestInstancein classorg.springframework.test.context.support.AbstractTestExecutionListener- Throws:
Exception
-
beforeTestMethod
public void beforeTestMethod(org.springframework.test.context.TestContext testContext) throws Exception- Specified by:
beforeTestMethodin interfaceorg.springframework.test.context.TestExecutionListener- Overrides:
beforeTestMethodin classorg.springframework.test.context.support.AbstractTestExecutionListener- Throws:
Exception
-
afterTestMethod
public void afterTestMethod(org.springframework.test.context.TestContext testContext) throws Exception- Specified by:
afterTestMethodin interfaceorg.springframework.test.context.TestExecutionListener- Overrides:
afterTestMethodin classorg.springframework.test.context.support.AbstractTestExecutionListener- Throws:
Exception
-
-