public class TestRWWriteCacheService extends TestCase3
WriteCacheService
using scattered writes on a
backing file.TestCase2.MyProperties, TestCase2.RandomType
Modifier and Type | Field and Description |
---|---|
protected Random |
r
A random number generated - the seed is NOT fixed.
|
_randomType, log
Constructor and Description |
---|
TestRWWriteCacheService() |
TestRWWriteCacheService(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.
|
protected void |
setUp() |
protected void |
tearDown() |
void |
test_simpleDataRWService() |
void |
test_simpleRWService() |
void |
test_stressDataRWService() |
void |
testCompactingCopy()
Test simple compaction of WriteCache
|
void |
testFullCompactingCopy() |
void |
testSingleCompactingCopy() |
void |
testStressCompactingCopy()
1) Creates five WriteCaches and writes until four full.
|
assertCondition, assertCondition, assertEquals, assertEquals, getBytes, getPort, getRandomData
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 TestRWWriteCacheService()
public TestRWWriteCacheService(String name)
name
- protected void tearDown() throws Exception
public void test_simpleRWService() throws IOException, InterruptedException
IOException
InterruptedException
public void test_simpleDataRWService() throws IOException
IOException
public void test_stressDataRWService() 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.public void testCompactingCopy() throws InterruptedException
InterruptedException
public void testFullCompactingCopy() throws InterruptedException
InterruptedException
public void testSingleCompactingCopy() throws InterruptedException
InterruptedException
public void testStressCompactingCopy() throws InterruptedException
InterruptedException
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.