public class TestDirectBufferPoolAllocator extends TestCase2
DirectBufferPoolAllocator
.TestCase2.MyProperties, TestCase2.RandomType
_randomType, log
Constructor and Description |
---|
TestDirectBufferPoolAllocator() |
TestDirectBufferPoolAllocator(String name) |
Modifier and Type | Method and Description |
---|---|
protected void |
tearDown() |
void |
test_allocateThenClose()
Opens the allocator, creates an
DirectBufferPoolAllocator.IAllocationContext , obtains an
DirectBufferPoolAllocator.IAllocation from that context, and then releases the
DirectBufferPoolAllocator.IAllocationContext . |
void |
test_allocationContextsAreDistinct()
Unit test verifies that
DirectBufferPoolAllocator.IAllocationContext s created for different
keys are distinct. |
void |
test_close()
Opens and closes the allocator.
|
void |
test_multipleBufferAllocation()
Unit tests for multiple allocations within the same.
|
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, setUp, toString
public TestDirectBufferPoolAllocator()
public TestDirectBufferPoolAllocator(String name)
name
- protected void tearDown() throws Exception
tearDown
in class junit.framework.TestCase
Exception
public void test_close()
public void test_allocationContextsAreDistinct()
DirectBufferPoolAllocator.IAllocationContext
s created for different
keys are distinct.public void test_allocateThenClose() throws InterruptedException
DirectBufferPoolAllocator.IAllocationContext
, obtains an
DirectBufferPoolAllocator.IAllocation
from that context, and then releases the
DirectBufferPoolAllocator.IAllocationContext
. The test also verifies that the
ByteBuffer
was released back to the DirectBufferPool
.InterruptedException
public void test_multipleBufferAllocation() throws InterruptedException
InterruptedException
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.