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, logProperties
assertEquals, 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, toString
protected void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
protected void tearDown() throws Exception
tearDown
in class junit.framework.TestCase
Exception
public void testSimpleRWWriter() throws FileNotFoundException, IOException, InterruptedException
public void testSimpleRWWriterReader() throws FileNotFoundException, IOException, InterruptedException
public void testConcurrentRWWriterReader() throws Exception
Exception
public 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()
.Exception
public void test_fileLeak_historicalHALog() throws Exception
Exception
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.