1 6 7 package com.hp.hpl.jena.db.test; 8 9 import java.sql.SQLException ; 10 11 import com.hp.hpl.jena.graph.*; 12 import com.hp.hpl.jena.graph.test.*; 13 import com.hp.hpl.jena.db.*; 14 import com.hp.hpl.jena.shared.*; 15 16 import junit.framework.*; 17 18 21 public class TestGraphRDB extends MetaTestGraph 22 { 23 public TestGraphRDB( String name ) 24 { super( name ); } 25 26 public TestGraphRDB( Class graphClass, String name, ReificationStyle style ) 27 { super( graphClass, name, style ); } 28 29 public static TestSuite suite() 30 { return MetaTestGraph.suite( TestGraphRDB.class, LocalGraphRDB.class ); } 31 32 private IDBConnection con; 33 private int count = 0; 34 private Graph properties; 35 36 public void setUp() 37 { con = TestConnection.makeAndCleanTestConnection(); 38 properties = con.getDefaultModelProperties().getGraph(); } 39 40 public void tearDown() throws SQLException 41 { con.close(); } 42 43 public class LocalGraphRDB extends GraphRDB 44 { 45 public LocalGraphRDB( ReificationStyle style ) 46 { super( con, "testGraph-" + count ++, properties, styleRDB( style ), true ); } 47 } 48 } 49 50 51 | Popular Tags |