public class TestMutableValueBuffer extends TestCase2
MutableValuesBuffer
.TestCase2.MyProperties, TestCase2.RandomType
_randomType, log
Constructor and Description |
---|
TestMutableValueBuffer() |
TestMutableValueBuffer(String name) |
Modifier and Type | Method and Description |
---|---|
void |
test_add_not_supported()
The various methods "add()" methods are not supported because they do not
specify the index of the tuple and we need to have that since the tuples
are not dense and the bucket page is divided into buddy bucket regions
which must be managed separately.
|
void |
test_ctor_capacity_correct_rejection()
Unit tests for constructor accepting only the capacity of the buffer.
|
void |
test_ctor_capacity_postConditions()
Check the post-conditions for a legal invocation of the constructor.
|
void |
test_ctor_capacity_validInvocations()
These are legal invocations.
|
void |
test_ctor_copy_correct_rejection() |
void |
test_ctor_copy()
Unit test the copy constructor.
|
void |
test_ctor_raba_with_explicit_capacity_correct_rejection() |
void |
test_ctor_raba_with_explicit_capacity()
Unit test the constructor variant which accepts an
IRaba and an
explicitly given capacity. |
void |
test_ctor_wrap_correct_rejection() |
void |
test_ctor_wrap_postConditions()
Unit test constructor wrapping the caller's data.
|
void |
test_isvalues()
The values of the
HTree do not have any of the requirements of the
B+Tree values. |
void |
test_mutation()
Test for key mutation operations (adding, removing, etc).
|
void |
test_search_not_supported()
IRaba.search(byte[]) is not supported because it must be done
within a buddy hash bucket boundary. |
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, tearDown, toString
public TestMutableValueBuffer()
public TestMutableValueBuffer(String name)
name
- public void test_ctor_capacity_correct_rejection()
public void test_ctor_capacity_validInvocations()
public void test_ctor_capacity_postConditions()
public void test_ctor_wrap_correct_rejection()
public void test_ctor_wrap_postConditions()
public void test_ctor_copy_correct_rejection()
public void test_ctor_copy()
public void test_ctor_raba_with_explicit_capacity_correct_rejection()
public void test_ctor_raba_with_explicit_capacity()
IRaba
and an
explicitly given capacity.public void test_isvalues()
HTree
do not have any of the requirements of the
B+Tree values. The values in a bucket page may contain duplicates and
null
s and are not searchable (only scannable, and then only
within a logical buddy bucket). Therefore this class reports
false
for IRaba#isvalues()
.public void test_add_not_supported() throws IOException
IOException
public void test_search_not_supported()
IRaba.search(byte[])
is not supported because it must be done
within a buddy hash bucket boundary. Since the values are neither ordered
nor dense, search must use a simple scan. Also note that there can be
duplicate values within a buddy hash table.public void test_mutation()
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.