public class TestEncodeDecodeUnicodeIVs extends AbstractEncodeDecodeKeysTestCase
IV
s which inline Unicode data.TestCase2.MyProperties, TestCase2.RandomType
_randomType, log
Constructor and Description |
---|
TestEncodeDecodeUnicodeIVs() |
TestEncodeDecodeUnicodeIVs(String name) |
Modifier and Type | Method and Description |
---|---|
void |
test_encodeDecode_extension_xsdString()
Unit test for the
XSDStringExtension support for inlining
xsd:string . |
void |
test_encodeDecode_Inline_BNode_UnicodeID()
Unit test for inlining blank nodes having a Unicode
ID . |
void |
test_encodeDecode_Inline_Extension_URI()
Unit test for inlining an entire URI using
URIExtensionIV . |
void |
test_encodeDecode_Inline_Literal_datatypeLiteral()
Unit test for
FullyInlineTypedLiteralIV . |
void |
test_encodeDecode_Inline_Literal_languageCodeLiteral()
Unit test for
FullyInlineTypedLiteralIV . |
void |
test_encodeDecode_Inline_Literal_plainLiteral()
Unit test for
FullyInlineTypedLiteralIV . |
void |
test_encodeDecode_Inline_Literal_XSDString_DeconflictionTest()
Unit test for
FullyInlineTypedLiteralIV . |
void |
test_encodeDecode_Inline_Literals_All_Types()
A unit test for
FullyInlineTypedLiteralIV in which we mix plain literals,
language code literals, and datatype literals. |
void |
test_encodeDecode_Inline_URI()
Unit test for inlining an entire URI using
FullyInlineURIIV . |
void |
test_encodeDecode_LiteralNamespaceIV()
Unit test for a fully inline representation of a datatype Literal based
on a datatypeIV represented by a
VocabURIShortIV and a Unicode
localName. |
void |
test_encodeDecode_NonInline_Literal_with_DatatypeIV()
Test for a literal broken down into datatype IV and an inline label.
|
void |
test_encodeDecode_NonInline_URI_with_NamespaceIV()
Test for a URI broken down into namespace and local name components.
|
void |
test_encodeDecode_URINamespaceIV()
Unit test for a fully inline representation of a URI based on a
namespaceIV represented by a
VocabURIShortIV and a Unicode localName. |
decodeStatementKey, doComparatorTest, doEncodeDecodeTest, newTermId, setUp, 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 TestEncodeDecodeUnicodeIVs()
public TestEncodeDecodeUnicodeIVs(String name)
name
- public void test_encodeDecode_extension_xsdString()
XSDStringExtension
support for inlining
xsd:string
. This approach is more efficient since the
datatypeURI is implicit in the IExtension
handler than being
explicitly represented in the inline data.public void test_encodeDecode_Inline_URI()
FullyInlineURIIV
. The URI
is inlined as a Unicode component using DTE.XSDString
. The
extension bit is NOT set since we are not factoring out the namespace
component of the URI.public void test_encodeDecode_Inline_Extension_URI()
URIExtensionIV
. The
URI is inlined as a combination of a Vocabulary
item and a
Unicode component using DTE.XSDString
. The extension bit is set
since we are factoring out the namespace component of the URI.public void test_encodeDecode_Inline_BNode_UnicodeID()
ID
.public void test_encodeDecode_Inline_Literal_plainLiteral()
FullyInlineTypedLiteralIV
. That class provides inlining of
any kind of Literal
. However, while that class is willing to
inline xsd:string
it is more efficient to handle inlining
for xsd:string
using the XSDStringExtension
.
This tests the inlining of plain literals.
public void test_encodeDecode_Inline_Literal_languageCodeLiteral()
FullyInlineTypedLiteralIV
. That class provides inlining of
any kind of Literal
. However, while that class is willing to
inline xsd:string
it is more efficient to handle inlining
for xsd:string
using the XSDStringExtension
.
This tests inlining of language code literals.
public void test_encodeDecode_Inline_Literal_datatypeLiteral()
FullyInlineTypedLiteralIV
. That class provides inlining of
any kind of Literal
. However, while that class is willing to
inline xsd:string
it is more efficient to handle inlining
for xsd:string
using the XSDStringExtension
.
This tests inlining of datatype literals which DO NOT correspond to registered extension types as the datatypeIV plus the inline Unicode value of the label.
public void test_encodeDecode_Inline_Literals_All_Types()
FullyInlineTypedLiteralIV
in which we mix plain literals,
language code literals, and datatype literals. This verifies that they
encode and decode correctly but also that the unsigned byte[] ordering of
the encoded keys is preserved across the different types of literals.public void test_encodeDecode_Inline_Literal_XSDString_DeconflictionTest()
FullyInlineTypedLiteralIV
. That class provides inlining of
any kind of Literal
. However, while that class is willing to
inline xsd:string
it is more efficient to handle inlining
for xsd:string
using the XSDStringExtension
.
This tests for possible conflicting interpretations of an xsd:string value. The interpretation as a fully inline literal should be distinct from other possible interpretations so this is testing for unexpected errors.
public void test_encodeDecode_NonInline_URI_with_NamespaceIV()
DTE.XSDString
.public void test_encodeDecode_NonInline_Literal_with_DatatypeIV()
DTE.XSDString
.public void test_encodeDecode_URINamespaceIV()
VocabURIShortIV
and a Unicode localName.public void test_encodeDecode_LiteralNamespaceIV()
VocabURIShortIV
and a Unicode
localName.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.