1 6 7 package com.hp.hpl.jena.reasoner.test; 8 9 import junit.framework.*; 10 11 import com.hp.hpl.jena.rdf.model.ModelFactory; 12 import com.hp.hpl.jena.rdf.model.test.ModelTestBase; 13 import com.hp.hpl.jena.reasoner.InfGraph; 14 15 21 public class TestInfPrefixMapping extends ModelTestBase 22 { 23 public TestInfPrefixMapping( String name ) 24 { super( name ); } 25 26 public static TestSuite suite() 27 { return new TestSuite( TestInfPrefixMapping.class ); } 28 29 private InfGraph getInfGraph() 30 { 31 return (InfGraph) ModelFactory.createOntologyModel().getGraph(); 32 } 33 34 public void testInfGraph() 35 { 36 InfGraph ig = getInfGraph(); 37 assertSame( ig.getPrefixMapping(), ig.getRawGraph().getPrefixMapping() ); 38 } 39 } 40 41 | Popular Tags |