1 6 7 package com.hp.hpl.jena.graph.test; 8 9 import com.hp.hpl.jena.graph.*; 10 import com.hp.hpl.jena.shared.*; 11 import com.hp.hpl.jena.shared.test.*; 12 13 import junit.framework.*; 14 15 18 public class TestGraphPrefixMapping extends GraphTestBase 19 { 20 public TestGraphPrefixMapping( String name ) 21 { super( name ); } 22 23 public static TestSuite suite() 24 { return new TestSuite( TestGraphPrefixMapping.class ); } 25 26 public void testGraphPrefixMapping() 27 { 28 Graph g = Factory.createDefaultGraph(); 29 AbstractTestPrefixMapping.testUseEasyPrefix 30 ( "from Graph", g.getPrefixMapping() ); 31 testSameMapping( g ); 32 } 33 34 public void testSameMapping( Graph g ) 35 { 36 PrefixMapping pm = g.getPrefixMapping(); 37 assertTrue( pm == g.getPrefixMapping() ); 38 } 39 } 40 41 42 | Popular Tags |