@PerformanceTest public class WorkerValueQueueTest extends HybrisJUnit4Test
| Modifier and Type | Class and Description |
|---|---|
protected static class |
WorkerValueQueueTest.Master |
defaultLanguage, jaloSession| Constructor and Description |
|---|
WorkerValueQueueTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertAllPKsUsed(int expectedUseCount) |
protected void |
performLinearPerformanceTest(WorkerValueQueue<PK> queue1,
int cycles,
int pkCount) |
void |
setUp() |
protected Collection<Thread> |
simulateWorkers(WorkerValueQueue<PK> queue) |
protected WorkerValueQueueTest.Master |
simulateWriter(WorkerValueQueue<PK> queue,
int cycles) |
void |
testPerformance() |
void |
testQueueCompleteness() |
void |
testQueueMultipleCycles() |
protected void |
waitForEmptyQueue(WorkerValueQueue<PK> queue) |
protected void |
waitForMaster(Thread master) |
protected void |
waitForWorkers(Collection<Thread> workers) |
finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivatedpublic void setUp()
public void testPerformance()
public void testQueueMultipleCycles()
throws InterruptedException
InterruptedExceptionpublic void testQueueCompleteness()
throws InterruptedException
InterruptedExceptionprotected void performLinearPerformanceTest(WorkerValueQueue<PK> queue1, int cycles, int pkCount)
protected void assertAllPKsUsed(int expectedUseCount)
protected void waitForEmptyQueue(WorkerValueQueue<PK> queue)
protected void waitForMaster(Thread master) throws InterruptedException
InterruptedExceptionprotected void waitForWorkers(Collection<Thread> workers)
protected WorkerValueQueueTest.Master simulateWriter(WorkerValueQueue<PK> queue, int cycles)
protected Collection<Thread> simulateWorkers(WorkerValueQueue<PK> queue) throws InterruptedException
InterruptedExceptionCopyright © 2017 SAP SE. All Rights Reserved.