public class BulkheadSynchTest
extends org.jboss.arquillian.testng.Arquillian
| Constructor and Description |
|---|
BulkheadSynchTest() |
| Modifier and Type | Method and Description |
|---|---|
static org.jboss.shrinkwrap.api.spec.WebArchive |
deploy()
This is the Arquillian deploy method that controls the contents of the war that contains all the tests.
|
static void |
testBulkhead(int maxRunning,
Consumer<Barrier> bulkheadMethod)
Conducts a standard test to ensure that a synchronous bulkhead with no other annotations works correctly.
|
void |
testBulkheadClassSemaphore10()
Tests the class synchronous Bulkhead10.
|
void |
testBulkheadClassSemaphore3()
Tests the class synchronous Bulkhead3.
|
void |
testBulkheadClassSemaphoreDefault()
Tests the basic class synchronous Bulkhead.
|
void |
testBulkheadMethodSemaphore10()
Tests the method synchronous Bulkhead10.
|
void |
testBulkheadMethodSemaphore3()
Tests the method synchronous Bulkhead3.
|
void |
testBulkheadMethodSemaphoreDefault()
Tests the basic method synchronous Bulkhead with defaulting value parameter.
|
void |
testSemaphoreWaitingTaskQueueIgnored()
Test that the
waitingTaskQueue parameter is ignored when Bulkhead is used without
Asynchronous. |
@Deployment public static org.jboss.shrinkwrap.api.spec.WebArchive deploy()
public void testBulkheadClassSemaphore3()
@Bulkhead(3) Class.public void testBulkheadMethodSemaphore3()
public void testBulkheadClassSemaphore10()
@Bulkhead(10) Class.public void testBulkheadMethodSemaphore10()
@Bulkhead(10) annotationpublic void testBulkheadClassSemaphoreDefault()
@Bulkhead(10) Class.public void testBulkheadMethodSemaphoreDefault()
public void testSemaphoreWaitingTaskQueueIgnored()
waitingTaskQueue parameter is ignored when Bulkhead is used without
Asynchronous.public static void testBulkhead(int maxRunning,
Consumer<Barrier> bulkheadMethod)
The bulkheadMethod should be a reference to a method annotated with Bulkhead which accepts a
Barrier and calls Barrier.await().
maxRunning - expected number of tasks permitted to runbulkheadMethod - a reference to the annotated methodCopyright © 2016 – 2022 Eclipse Foundation. All rights reserved.
Use is subject to license terms.