public abstract class AbstractEncodeDecodeKeysTestCase extends TestCase2
TestCase2.MyProperties, TestCase2.RandomType
_randomType, log
Constructor and Description |
---|
AbstractEncodeDecodeKeysTestCase() |
AbstractEncodeDecodeKeysTestCase(String name) |
Modifier and Type | Method and Description |
---|---|
static IV[] |
decodeStatementKey(byte[] key,
int arity)
Decode a key from one of the statement indices.
|
protected static void |
doComparatorTest(IV<?,?>[] e)
Verify the comparator for some set of
IV s. |
protected static IV<?,?>[] |
doEncodeDecodeTest(IV<?,?>[] e)
Encodes an array of
IV s and then decodes them and
verifies that the decoded values are equal-to the original values. |
protected IV<?,?> |
newTermId(VTE vte)
Factory for mock
IV s. |
protected void |
setUp() |
protected void |
tearDown() |
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
public AbstractEncodeDecodeKeysTestCase()
public AbstractEncodeDecodeKeysTestCase(String name)
name
- public static IV[] decodeStatementKey(byte[] key, int arity)
null
if there are only three components in
the key.key
- The key.IV
s for that key.protected static IV<?,?>[] doEncodeDecodeTest(IV<?,?>[] e)
IV
s and then decodes them and
verifies that the decoded values are equal-to the original values.e
- The array of the expected values.protected void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
protected void tearDown() throws Exception
tearDown
in class junit.framework.TestCase
Exception
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.