Class CDIContextTest
java.lang.Object
org.jboss.arquillian.testng.Arquillian
org.eclipse.microprofile.context.tck.cdi.CDIContextTest
- All Implemented Interfaces:
org.testng.IHookable,org.testng.ITestNGListener
public class CDIContextTest
extends org.jboss.arquillian.testng.Arquillian
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jboss.arquillian.testng.Arquillian
org.jboss.arquillian.testng.Arquillian.UpdateResultListener -
Field Summary
Fields inherited from class org.jboss.arquillian.testng.Arquillian
ARQUILLIAN_DATA_PROVIDER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterMethod(Method m, org.testng.ITestResult result) voidstatic org.jboss.shrinkwrap.api.spec.WebArchivevoidSet some state on Conversation scoped bean and verify the state is cleared on the thread where the other task runs.voidSet some state on Request scoped bean and verify the state is cleared on the thread where the other task runs.voidSet some state on Session scoped bean and verify the state is cleared on the thread where the other task runs.voidSet some state on Conversation scoped beans and verify the state is propagated to the thread where the other task runs.voidSet some state on Request scoped bean and verify the state is propagated to the thread where the other task runs.voidSet some state on Session scoped bean and verify the state is propagated to the thread where the other task runs.voidSet some state on a request scoped bean, then verify a contextualized callable has the state cleared from it when ran on the same thread.voidSet some state on a request scoped bean, then verify a contextualized callable has the state propagated to it when ran on the same thread.Methods inherited from class org.jboss.arquillian.testng.Arquillian
arquillianAfterClass, arquillianAfterSuite, arquillianAfterTest, arquillianArgumentProvider, arquillianBeforeClass, arquillianBeforeSuite, arquillianBeforeTest, run
-
Constructor Details
-
CDIContextTest
public CDIContextTest()
-
-
Method Details
-
afterMethod
-
beforeMethod
-
createDeployment
@Deployment public static org.jboss.shrinkwrap.api.spec.WebArchive createDeployment() -
testCDIMECtxPropagatesRequestScopedBean
Set some state on Request scoped bean and verify the state is propagated to the thread where the other task runs. If the CDI context in question is not active, the test is deemed successful as there is no propagation to be done.- Throws:
Exception- indicates test failure
-
testCDIMECtxPropagatesSessionScopedBean
Set some state on Session scoped bean and verify the state is propagated to the thread where the other task runs. If the CDI context in question is not active, the test is deemed successful as there is no propagation to be done.- Throws:
Exception- indicates test failure
-
testCDIMECtxPropagatesConversationScopedBean
Set some state on Conversation scoped beans and verify the state is propagated to the thread where the other task runs. If the CDI context in question is not active, the test is deemed successful as there is no propagation to be done.- Throws:
Exception- indicates test failure
-
testCDIMECtxClearsRequestScopedBean
Set some state on Request scoped bean and verify the state is cleared on the thread where the other task runs. If the CDI context in question is not active, the test is deemed successful as there is no propagation to be done.- Throws:
Exception- indicates test failure
-
testCDIMECtxClearsSessionScopedBeans
Set some state on Session scoped bean and verify the state is cleared on the thread where the other task runs. If the CDI context in question is not active, the test is deemed successful as there is no propagation to be done.- Throws:
Exception- indicates test failure
-
testCDIMECtxClearsConversationScopedBeans
Set some state on Conversation scoped bean and verify the state is cleared on the thread where the other task runs. If the CDI context in question is not active, the test is deemed successful as there is no propagation to be done.- Throws:
Exception- indicates test failure
-
testCDITCCtxPropagate
Set some state on a request scoped bean, then verify a contextualized callable has the state propagated to it when ran on the same thread.- Throws:
Exception- indicates test failure
-
testCDITCCtxClear
Set some state on a request scoped bean, then verify a contextualized callable has the state cleared from it when ran on the same thread.- Throws:
Exception- indicates test failure
-