public class MPConfigTest
extends org.jboss.arquillian.testng.Arquillian
Modifier and Type | Field and Description |
---|---|
protected MPConfigBean |
bean |
protected ManagedExecutor |
producedExecutor |
protected ThreadContext |
producedThreadContext |
Constructor and Description |
---|
MPConfigTest() |
Modifier and Type | Method and Description |
---|---|
void |
afterMethod(Method m,
org.testng.ITestResult result) |
void |
beanInjected()
Determine if instances injected properly, which is a prerequisite of running these tests.
|
void |
beforeMethod(Method m) |
static org.jboss.shrinkwrap.api.spec.WebArchive |
createDeployment() |
void |
defaultContextPropagationForManagedExecutorViaMPConfig()
Verify that the cleared and propagated attributes of a ManagedExecutor are defaulted
according to the defaults specified by the application in MicroProfile Config.
|
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.
|
void |
defaultMaxAsyncAndMaxQueuedForManagedExecutorViaMPConfig()
Verify that the maxAsync and maxQueued attributes of a ManagedExecutor are defaulted
according to the defaults specified by the application in MicroProfile Config.
|
void |
explicitlySpecifiedPropagatedTakesPrecedenceOverDefaults()
Verify that MicroProfile config defaults the cleared attribute when only the
propagated and maxQueued attributes are specified by the application.
|
void |
explicitlySpecifyAllAttributesOfThreadContext()
Verify that MicroProfile config does not default any attributes when all attributes
are explicitly specified by the application.
|
void |
explicitlySpecifyMaxQueued5()
Verify 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.
|
@Inject protected MPConfigBean bean
@Inject protected ManagedExecutor producedExecutor
@Inject @Named(value="producedThreadContext") protected ThreadContext producedThreadContext
@AfterMethod public void afterMethod(Method m, org.testng.ITestResult result)
@BeforeMethod public void beforeMethod(Method m)
@Deployment public static org.jboss.shrinkwrap.api.spec.WebArchive createDeployment()
public void beanInjected()
public void defaultContextPropagationForManagedExecutorViaMPConfig() throws ExecutionException, InterruptedException, TimeoutException
ExecutionException
- indicates test failureInterruptedException
- indicates test failureTimeoutException
- indicates test failurepublic void defaultContextPropagationForThreadContextViaMPConfig()
public void defaultMaxAsyncAndMaxQueuedForManagedExecutorViaMPConfig() throws ExecutionException, InterruptedException, TimeoutException
ExecutionException
- indicates test failureInterruptedException
- indicates test failureTimeoutException
- indicates test failurepublic void explicitlySpecifiedPropagatedTakesPrecedenceOverDefaults() throws ExecutionException, InterruptedException, TimeoutException
ExecutionException
- indicates test failureInterruptedException
- indicates test failureTimeoutException
- indicates test failurepublic void explicitlySpecifyAllAttributesOfThreadContext()
public void explicitlySpecifyMaxQueued5() throws ExecutionException, InterruptedException, TimeoutException
ExecutionException
- indicates test failureInterruptedException
- indicates test failureTimeoutException
- indicates test failureCopyright © 2021 Eclipse Foundation. All rights reserved.