public class TestWriteCacheServiceLifetime extends TestCase3
TestCase2.MyProperties, TestCase2.RandomType
Modifier and Type | Field and Description |
---|---|
protected Random |
r |
_randomType, log
Constructor and Description |
---|
TestWriteCacheServiceLifetime() |
TestWriteCacheServiceLifetime(String name) |
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
getRandomData()
Returns random data that will fit in N bytes.
|
ByteBuffer |
getRandomData(int nbytes)
Returns random data that will fit in nbytes.
|
void |
testSimpleStartStopRWService() |
void |
testSimpleStartStopRWService2()
The first genuine lifetime test, sets 20 concurrent writer tasks
to output to the service and a final task to close the service
concurrently.
|
assertCondition, assertCondition, assertEquals, assertEquals, getBytes, getPort, getRandomData, setUp, tearDown
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 final Random r
public TestWriteCacheServiceLifetime()
public TestWriteCacheServiceLifetime(String name)
public void testSimpleStartStopRWService() throws InterruptedException, IOException
InterruptedException
IOException
public void testSimpleStartStopRWService2() throws InterruptedException, IOException
InterruptedException
IOException
public ByteBuffer getRandomData()
ByteBuffer
wrapping a new byte[]
of
random length and having random contents.public ByteBuffer getRandomData(int nbytes)
getRandomData
in class TestCase3
ByteBuffer
wrapping a new byte[]
having random contents.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.