public class TestHALogWriter extends TestCase2
HALogWriter and HALogReader.TestCase2.MyProperties, TestCase2.RandomType_randomType, log| Constructor and Description |
|---|
TestHALogWriter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
setUp() |
protected void |
tearDown() |
void |
test_closeLiveLogWithOpenReader()
A unit test where the reader is blocked awaiting more input in
IHALogReader.hasMoreBuffers() on the live HALog. |
void |
test_disableLiveLogWithOpenReader()
A unit test where the reader is blocked awaiting more input in
IHALogReader.hasMoreBuffers() on the live HALog. |
void |
test_doubleOpen_close_historicalHALog()
Unit test verifies that each open of an
IHALogReader is distinct
and the an IHALogReader.close() will not close the backing
channel for a different reader instance that is reading from the same
HALog file. |
void |
test_fileLeak_historicalHALog()
Unit test for an open file leak for a historical log reader.
|
void |
testConcurrentRWWriterReader()
While a writer thread writes a number of HALogs, readers are opened
to process them.
|
void |
testSimpleRWWriter()
Simple writelog test, open file, write data and commit.
|
void |
testSimpleRWWriterReader()
Simple WriteReader, no concurrency, confirms non-delayed responses.
|
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, toStringprotected void setUp()
throws Exception
setUp in class junit.framework.TestCaseExceptionprotected void tearDown()
throws Exception
tearDown in class junit.framework.TestCaseExceptionpublic void testSimpleRWWriter()
throws FileNotFoundException,
IOException,
InterruptedException
public void testSimpleRWWriterReader()
throws FileNotFoundException,
IOException,
InterruptedException
public void testConcurrentRWWriterReader()
throws Exception
Exceptionpublic void test_closeLiveLogWithOpenReader()
throws IOException,
InterruptedException,
ExecutionException
IHALogReader.hasMoreBuffers() on the live HALog. The writer is
closed. The reader should immediately notice this event and return
false.public void test_disableLiveLogWithOpenReader()
throws IOException,
InterruptedException,
ExecutionException
IHALogReader.hasMoreBuffers() on the live HALog. The writer is
disabled. The reader should
immediately notice this event and return false.public void test_doubleOpen_close_historicalHALog()
throws Exception
IHALogReader is distinct
and the an IHALogReader.close() will not close the backing
channel for a different reader instance that is reading from the same
HALog file. This version of the test is for a historical (non-live) HALog
file. The case for the live HALog file is tested by
testSimpleRWWriterReader().Exceptionpublic void test_fileLeak_historicalHALog()
throws Exception
ExceptionCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.