public class TestBlockingBuffer extends TestCase2
BlockingBuffer and its IAsynchronousIterator.TestCase2.MyProperties, TestCase2.RandomType_randomType, log| Constructor and Description | 
|---|
| TestBlockingBuffer() | 
| TestBlockingBuffer(String arg0) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | _testStress_blockingBuffer_close()Stress test version of  test_blockingBuffer_close(). | 
| protected void | tearDown() | 
| void | test_blockingBuffer_close_noConsumer_closedThroughIterator()Test that a thread blocked on add() will be unblocked by
  BlockingBuffer.close(). | 
| void | test_blockingBuffer_close_noConsumer()Test that a thread blocked on add() will be unblocked by
  BlockingBuffer.close(). | 
| void | test_blockingBuffer_close()Test that threads blocked on add() will be unblocked by
  BlockingBuffer.close(). | 
| void | test_blockingBuffer()Basic test of the ability to add to a buffer with a fixed capacity queue
 and to drain the elements from the queue including tests of the
 non-blocking aspects of the API. | 
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEqualsWithinUlps, assertSameArray, assertSameArray, assertSameBigDecimal, assertSameBigDecimal, assertSameBigInteger, assertSameBigInteger, assertSameIterator, assertSameIterator, assertSameIteratorAnyOrder, assertSameIteratorAnyOrder, assertSameValue, assertSameValue, assertZeroUlps, assertZeroUlps, fail, getInnerCause, getNormalInt, getProjectBuildPath, getProperties, getRandomObject, getRandomObject, getRandomOrder, getRandomString, getTestInputStream, getTestResource, getTestResource, getUlps, getUlps, isDEBUG, isDEBUG, isINFO, isINFO, isInnerCause, logPropertiesassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, toStringpublic TestBlockingBuffer()
public TestBlockingBuffer(String arg0)
arg0 - protected void tearDown()
                 throws Exception
tearDown in class junit.framework.TestCaseExceptionpublic void test_blockingBuffer()
                         throws InterruptedException,
                                ExecutionException,
                                TimeoutException
public void test_blockingBuffer_close_noConsumer()
                                          throws Exception
BlockingBuffer.close(). For this test, there is no consumer and
 there is a single producer. We just fill up the buffer and when it is
 full, we verify that the producer is blocked. We then use
 BlockingBuffer.close() to close the buffer and verify that the
 producer was woken up.Exceptionpublic void test_blockingBuffer_close_noConsumer_closedThroughIterator()
                                                                throws Exception
BlockingBuffer.close(). For this test, there is no consumer and
 there is a single producer. We just fill up the buffer and when it is
 full, we verify that the producer is blocked. We then use the object
 returned by BlockingBuffer.iterator() to
 IAsynchronousIterator.close() to close the buffer and verify that
 the producer was woken up.Exceptionpublic void test_blockingBuffer_close()
                               throws InterruptedException,
                                      ExecutionException,
                                      TimeoutException
BlockingBuffer.close(). A pool of producer threads run. A
 (smaller) pool of (slower) consumer thread(s) also runs. The
 BlockingBuffer is closed once the producer threads begin to
 block. We then verify that all producer threads are appropriately
 notified of the asynchronous cancellation of their request.public void _testStress_blockingBuffer_close()
                                      throws InterruptedException,
                                             ExecutionException,
                                             TimeoutException
test_blockingBuffer_close().Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.