| com.hp.hpl.jena.graph.test.GraphTestBase com.hp.hpl.jena.graph.test.TestNodeCache
TestNodeCache | public class TestNodeCache extends GraphTestBase (Code) | | TestNodeCache - make some (minimal, driving) tests for the NodeCache used
to reduce store turnover for repeated Node construction.
author: kers |
Field Summary | |
protected static String[] | someURIs An array of distinct URIs as ad-hoc probes into the cache under test. |
Method Summary | |
protected static String[] | inventURIs() | public static void | main(String[] ignoredArguments) Utility to find short strings with the same hashcode, which can be used as
the basis for constructing nodes with the same hashcode - this is what
was used to find the clashing strings used below. | public static TestSuite | suite() | public void | testClashettes() Visible evidence that the pairs of strings used have the same hashcode. | public void | testClashing() test that labels with the same hashcode are not confused. | public void | testNewCacheEmpty() test that a new cache is empty - none of the proble URIs are bound. | public void | testNewCacheUpdates() |
someURIs | protected static String[] someURIs(Code) | | An array of distinct URIs as ad-hoc probes into the cache under test.
|
main | public static void main(String[] ignoredArguments)(Code) | | Utility to find short strings with the same hashcode, which can be used as
the basis for constructing nodes with the same hashcode - this is what
was used to find the clashing strings used below.
|
suite | public static TestSuite suite()(Code) | | |
testClashettes | public void testClashettes()(Code) | | Visible evidence that the pairs of strings used have the same hashcode.
|
testClashing | public void testClashing()(Code) | | test that labels with the same hashcode are not confused.
|
testNewCacheEmpty | public void testNewCacheEmpty()(Code) | | test that a new cache is empty - none of the proble URIs are bound.
|
testNewCacheUpdates | public void testNewCacheUpdates()(Code) | | test that an element put into the cache is immediately retrievable
|
Fields inherited from com.hp.hpl.jena.graph.test.GraphTestBase | protected static int bnc(Code)(Java Doc)
|
Methods inherited from com.hp.hpl.jena.graph.test.GraphTestBase | protected static void appendNode(StringBuffer b, Map bnodes, Node n)(Code)(Java Doc) public Set arrayToSet(Object[] A)(Code)(Java Doc) public static void assertContains(String name, String s, Graph g)(Code)(Java Doc) public static void assertContainsAll(String name, Graph g, String s)(Code)(Java Doc) public static void assertEqualsTemplate(String title, Graph g, String template)(Code)(Java Doc) public static void assertIsomorphic(String title, Graph expected, Graph got)(Code)(Java Doc) public static void assertIsomorphic(Graph expected, Graph got)(Code)(Java Doc) public static void assertOmits(String name, Graph g, String s)(Code)(Java Doc) public static void assertOmitsAll(String name, Graph g, String s)(Code)(Java Doc) public static boolean contains(Graph g, String fact)(Code)(Java Doc) public static Graph getGraph(Object wrap, Class graphClass, ReificationStyle style)(Code)(Java Doc) protected static Graph getReificationTriples(Reifier r)(Code)(Java Doc) public static Graph graphAdd(Graph g, String s)(Code)(Java Doc) public static Graph graphWith(String s)(Code)(Java Doc) public static List iteratorToList(Iterator it)(Code)(Java Doc) public static Set iteratorToSet(Iterator it)(Code)(Java Doc) public static Graph newGraph()(Code)(Java Doc) public static String nice(Graph g, Map bnodes)(Code)(Java Doc) protected static String nice(Node n)(Code)(Java Doc) protected static void niceTriple(StringBuffer b, Map bnodes, Triple t)(Code)(Java Doc) public static Node node(String x)(Code)(Java Doc) public static Node[] nodeArray(String items)(Code)(Java Doc) public static List nodeList(String items)(Code)(Java Doc) public Set nodeSet(String nodes)(Code)(Java Doc) public void testContains(Graph g, Triple[] triples)(Code)(Java Doc) public void testContains(Graph g, List triples)(Code)(Java Doc) public void testContains(Graph g, Iterator it)(Code)(Java Doc) public void testContains(Graph g, Graph other)(Code)(Java Doc) public void testOmits(Graph g, Triple[] triples)(Code)(Java Doc) public void testOmits(Graph g, List triples)(Code)(Java Doc) public void testOmits(Graph g, Iterator it)(Code)(Java Doc) public void testOmits(Graph g, Graph other)(Code)(Java Doc) public static Triple triple(String fact)(Code)(Java Doc) public static Triple triple(PrefixMapping pm, String fact)(Code)(Java Doc) public static Triple[] tripleArray(String facts)(Code)(Java Doc) public static Set tripleSet(String facts)(Code)(Java Doc)
|
|
|