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, 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 testSimpleAllocations()
public void testAddressMappings()
public void testStressAllocations()
public void testSimpleBlob()
public void testAllocationContexts()
public void testNestedAllocationContexts()
public void testAllocationContextsStreams() throws IOException
IOException
public void testStressConcurrent() throws InterruptedException
InterruptedException
public void doStressAllocations(IMemoryManager mm, boolean clear, int tests, int maxString)
public void test_largeBlobAllocation()
public void test_blockingAllocation() throws InterruptedException, ExecutionException, TimeoutException
InterruptedException
TimeoutException
ExecutionException
- 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.