Class MPConfigTest
java.lang.Object
org.jboss.arquillian.testng.Arquillian
org.eclipse.microprofile.context.tck.MPConfigTest
- All Implemented Interfaces:
org.testng.IHookable,org.testng.ITestNGListener
public class MPConfigTest
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
FieldsModifier and TypeFieldDescriptionprotected MPConfigBeanprotected ManagedExecutorprotected ThreadContextFields 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) voidDetermine if instances injected properly, which is a prerequisite of running these tests.voidstatic org.jboss.shrinkwrap.api.spec.WebArchivevoidVerify that the cleared and propagated attributes of a ManagedExecutor are defaulted according to the defaults specified by the application in MicroProfile Config.voidVerify that the cleared and propagated attributes of a ThreadContext are defaulted according to the defaults specified by the application in MicroProfile Config.voidVerify that the maxAsync and maxQueued attributes of a ManagedExecutor are defaulted according to the defaults specified by the application in MicroProfile Config.voidVerify that MicroProfile config defaults the cleared attribute when only the propagated and maxQueued attributes are specified by the application.voidVerify that MicroProfile config does not default any attributes when all attributes are explicitly specified by the application.voidVerify that MicroProfile config defaults the maxAsync attribute and honors the explicitly specified maxQueued attribute, when only the propagated and maxQueued attributes are specified by the application.Methods inherited from class org.jboss.arquillian.testng.Arquillian
arquillianAfterClass, arquillianAfterSuite, arquillianAfterTest, arquillianArgumentProvider, arquillianBeforeClass, arquillianBeforeSuite, arquillianBeforeTest, run
-
Field Details
-
bean
-
producedExecutor
-
producedThreadContext
-
-
Constructor Details
-
MPConfigTest
public MPConfigTest()
-
-
Method Details
-
afterMethod
-
beforeMethod
-
createDeployment
@Deployment public static org.jboss.shrinkwrap.api.spec.WebArchive createDeployment() -
beanInjected
public void beanInjected()Determine if instances injected properly, which is a prerequisite of running these tests. -
defaultContextPropagationForManagedExecutorViaMPConfig
public void defaultContextPropagationForManagedExecutorViaMPConfig() throws ExecutionException, InterruptedException, TimeoutExceptionVerify that the cleared and propagated attributes of a ManagedExecutor are defaulted according to the defaults specified by the application in MicroProfile Config.- Throws:
ExecutionException- indicates test failureInterruptedException- indicates test failureTimeoutException- indicates test failure
-
defaultContextPropagationForThreadContextViaMPConfig
public void defaultContextPropagationForThreadContextViaMPConfig()Verify that the cleared and propagated attributes of a ThreadContext are defaulted according to the defaults specified by the application in MicroProfile Config. -
defaultMaxAsyncAndMaxQueuedForManagedExecutorViaMPConfig
public void defaultMaxAsyncAndMaxQueuedForManagedExecutorViaMPConfig() throws ExecutionException, InterruptedException, TimeoutExceptionVerify that the maxAsync and maxQueued attributes of a ManagedExecutor are defaulted according to the defaults specified by the application in MicroProfile Config.- Throws:
ExecutionException- indicates test failureInterruptedException- indicates test failureTimeoutException- indicates test failure
-
explicitlySpecifiedPropagatedTakesPrecedenceOverDefaults
public void explicitlySpecifiedPropagatedTakesPrecedenceOverDefaults() throws ExecutionException, InterruptedException, TimeoutExceptionVerify that MicroProfile config defaults the cleared attribute when only the propagated and maxQueued attributes are specified by the application.- Throws:
ExecutionException- indicates test failureInterruptedException- indicates test failureTimeoutException- indicates test failure
-
explicitlySpecifyAllAttributesOfThreadContext
public void explicitlySpecifyAllAttributesOfThreadContext()Verify that MicroProfile config does not default any attributes when all attributes are explicitly specified by the application. -
explicitlySpecifyMaxQueued5
public void explicitlySpecifyMaxQueued5() throws ExecutionException, InterruptedException, TimeoutExceptionVerify that MicroProfile config defaults the maxAsync attribute and honors the explicitly specified maxQueued attribute, when only the propagated and maxQueued attributes are specified by the application.- Throws:
ExecutionException- indicates test failureInterruptedException- indicates test failureTimeoutException- indicates test failure
-