public class TestMemoryManager extends TestCase2
TestCase2.MyProperties, TestCase2.RandomType_randomType, log| Constructor and Description |
|---|
TestMemoryManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
doStressAllocations(IMemoryManager mm,
boolean clear,
int tests,
int maxString) |
protected void |
setUp() |
protected void |
tearDown() |
void |
test_blockingAllocation()
Unit test in which we verify that a thread will block awaiting an
allocation until another thread releases an allocation, thereby making
enough memory available for the thread to continue.
|
void |
test_largeBlobAllocation()
Allocate a blob the size of a single sector.
|
void |
test_read()
Unit test for reading a copy of the data from the
IMemoryManager. |
void |
test_stressBlockingAllocation() |
void |
testAddressMappings()
The address mappings are between the integer allocation address and
the sector index (16 signed bits) and offset (16 unsigned bits).
|
void |
testAllocationContexts() |
void |
testAllocationContextsStreams() |
void |
testNestedAllocationContexts()
Rather than creating contexts directly, instead associate with
externally created context.
|
void |
testSimpleAllocations() |
void |
testSimpleBlob() |
void |
testStressAllocations() |
void |
testStressConcurrent() |
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 testSimpleAllocations()
public void testAddressMappings()
public void testStressAllocations()
public void testSimpleBlob()
public void testAllocationContexts()
public void testNestedAllocationContexts()
public void testAllocationContextsStreams()
throws IOException
IOExceptionpublic void testStressConcurrent()
throws InterruptedException
InterruptedExceptionpublic void doStressAllocations(IMemoryManager mm, boolean clear, int tests, int maxString)
public void test_largeBlobAllocation()
public void test_blockingAllocation()
throws InterruptedException,
ExecutionException,
TimeoutException
InterruptedExceptionTimeoutExceptionExecutionException - TODO Version of test with lt blob size allocations, with blob
size allocations, and with sector (or more) sized
allocations.public void test_stressBlockingAllocation()
throws InterruptedException,
ExecutionException,
TimeoutException
public void test_read()
IMemoryManager.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.