public class RingBufferTest extends Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
RingBufferTest.MonotonicallyIncreasingConsumer |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
print |
protected static Random |
RANDOM |
protected boolean |
slightPausesInConsumers |
| Constructor and Description |
|---|
RingBufferTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeEach() |
void |
consumersShouldSeeEventsInCorrectOrder() |
protected void |
print(String message) |
void |
shouldAutomaticallySetTheBufferSizeToTheNextPowerOf2() |
void |
shouldBeAbleToAddAndRemoveConsumers() |
void |
shouldBuildWithGarbageCollectionAnd1024Entries() |
void |
shouldBuildWithGarbageCollectionAnd8Entries() |
void |
shouldBuildWithNoGarbageCollection() |
protected volatile boolean print
protected volatile boolean slightPausesInConsumers
public RingBufferTest()
public void beforeEach()
public void shouldBuildWithNoGarbageCollection()
public void shouldBuildWithGarbageCollectionAnd8Entries()
public void shouldBuildWithGarbageCollectionAnd1024Entries()
public void shouldBeAbleToAddAndRemoveConsumers() throws Exception
Exceptionpublic void consumersShouldSeeEventsInCorrectOrder() throws Exception
Exception@FixFor(value="MODE-2195") public void shouldAutomaticallySetTheBufferSizeToTheNextPowerOf2() throws Exception
ExceptionCopyright © 2008–2021 JBoss, a division of Red Hat. All rights reserved.