public class TestMutableKeyBuffer extends TestCase2
MutableKeyBuffer
.TestCase2.MyProperties, TestCase2.RandomType
_randomType, log
Constructor and Description |
---|
TestMutableKeyBuffer() |
TestMutableKeyBuffer(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_isKeys()
The keys of the
HTree do not have any of the requirements of the
B+Tree keys. |
void |
test_mutation()
Test for key mutation operations (adding, removing, etc).
|
void |
test_search_not_supported()
IRaba.search(byte[]) is now supported because a BucketPage
contains ordered keys. |
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 TestMutableKeyBuffer()
public TestMutableKeyBuffer(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_isKeys()
HTree
do not have any of the requirements of the
B+Tree keys. The keys in a bucket page may contain duplicates but are now
ordered and therefore searchable. Therefore this class reports
true
for IRaba.isKeys()
.public void test_add_not_supported() throws IOException
IOException
public void test_search_not_supported()
IRaba.search(byte[])
is now supported because a BucketPage
contains ordered keys. Note that there can be
duplicate keys within a buddy hash table.public void test_mutation()
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.