|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
com.hp.hpl.jena.test.JenaTestBase
com.hp.hpl.jena.graph.test.GraphTestBase
com.hp.hpl.jena.shared.AbstractTestPrefixMapping
public abstract class AbstractTestPrefixMapping
Test prefix mappings - subclass this test and override getMapping() to deliver the prefixMapping to be tested.
Constructor Summary | |
---|---|
AbstractTestPrefixMapping(java.lang.String name)
|
Method Summary | |
---|---|
void |
testAddDefaultMap()
|
void |
testAddMap()
as for testAddOtherPrefixMapping, except that it's a plain Map we're adding. |
void |
testAddOtherPrefixMapping()
test that we can add the maplets from another PrefixMapping without losing our own. |
void |
testAllowNastyNamespace()
|
void |
testCheckNames()
Test that various illegal names are trapped. |
void |
testEasyQName()
|
void |
testEmptyDoesNotWipeURI()
Test that the empty prefix does not wipe an existing prefix for the same URI. |
void |
testEmptyPrefix()
The empty prefix is specifically allowed [for the default namespace]. |
void |
testEquality()
|
void |
testEqualsBase(java.lang.String S,
java.lang.String T,
boolean expected)
|
void |
testExpandPrefix()
|
void |
testLock()
|
void |
testNoQNameBadLocal()
|
void |
testNoQNameNoPrefix()
|
void |
testNullURITrapped()
|
void |
testPrefixMappingMap()
test that we can extract a proper Map from a PrefixMapping |
void |
testPrefixMappingMapping()
test that a PrefixMapping maps names to URIs. |
void |
testPrefixMappingSecret()
test that the Map returned by getNsPrefixMap does not alias (parts of) the secret internal map of the PrefixMapping |
void |
testQnameFromEmail()
The tests implied by the email where Chris suggested adding qnameFor; shortForm generates illegal qnames but qnameFor does not. |
void |
testRemovePrefix()
|
void |
testReturnsSelf()
|
void |
testReversePrefixMapping()
Test that we can run the prefix mapping in reverse - from URIs to prefixes. |
void |
testSameURIKeepsDefault()
Test that adding a new prefix mapping for U does not throw away a default mapping for U. |
void |
testSecondPrefixDeletedUncoversPreviousMap()
|
void |
testSecondPrefixReplacesReverseMap()
|
void |
testSecondPrefixRetainsExistingMap()
|
static void |
testShortForm(java.lang.String title,
PrefixMapping ns)
|
void |
testUseEasyPrefix()
|
static void |
testUseEasyPrefix(java.lang.String title,
PrefixMapping ns)
|
Methods inherited from class com.hp.hpl.jena.graph.test.GraphTestBase |
---|
arrayToSet, assertContains, assertContainsAll, assertEqualsTemplate, assertIsomorphic, assertIsomorphic, assertOmits, assertOmitsAll, contains, getGraph, graphAdd, graphWith, iteratorToList, iteratorToSet, newGraph, nice, node, nodeArray, nodeList, nodeSet, testContains, testContains, testContains, testContains, testOmits, testOmits, testOmits, testOmits, triple, triple, tripleArray, tripleSet |
Methods inherited from class com.hp.hpl.jena.test.JenaTestBase |
---|
append, assertDiffer, assertDiffer, assertHasParent, assertInstanceOf, getConstructor, hasAsParent, isPublicTestMethod, isTestMethod, listOfOne, listOfStrings, listToSet, pass, setOfOne, setOfStrings, testToSilenceJunitComplaintsAboutNoTestMethods |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, getName, run, run, runBare, setName, toString |
Methods inherited from class junit.framework.Assert |
---|
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, fail, fail, failNotEquals, failNotSame, failSame |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractTestPrefixMapping(java.lang.String name)
Method Detail |
---|
public void testEmptyPrefix()
public void testCheckNames()
public void testNullURITrapped()
public void testPrefixMappingMapping()
public void testReversePrefixMapping()
public void testPrefixMappingMap()
public void testPrefixMappingSecret()
public void testExpandPrefix()
public void testUseEasyPrefix()
public static void testUseEasyPrefix(java.lang.String title, PrefixMapping ns)
public static void testShortForm(java.lang.String title, PrefixMapping ns)
public void testEasyQName()
public void testNoQNameNoPrefix()
public void testNoQNameBadLocal()
public void testQnameFromEmail()
public void testAddOtherPrefixMapping()
public void testAddMap()
public void testAddDefaultMap()
public void testSecondPrefixRetainsExistingMap()
public void testSecondPrefixReplacesReverseMap()
public void testSecondPrefixDeletedUncoversPreviousMap()
public void testEmptyDoesNotWipeURI()
public void testSameURIKeepsDefault()
public void testReturnsSelf()
public void testRemovePrefix()
public void testEquality()
public void testEqualsBase(java.lang.String S, java.lang.String T, boolean expected)
public void testAllowNastyNamespace()
public void testLock()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |