1 6 7 package com.hp.hpl.jena.db.test; 8 9 import java.sql.SQLException ; 10 11 import com.hp.hpl.jena.db.*; 12 import com.hp.hpl.jena.db.impl.*; 13 import com.hp.hpl.jena.graph.*; 14 import com.hp.hpl.jena.graph.test.*; 15 import com.hp.hpl.jena.shared.*; 16 17 import junit.framework.*; 18 19 26 27 public class TestGraphRDBMaker extends AbstractTestGraphMaker 28 { 29 32 IDBConnection connection; 33 34 public TestGraphRDBMaker( String name ) 35 { super( name ); } 36 37 public static TestSuite suite() 38 { return new TestSuite( TestGraphRDBMaker.class ); } 39 40 public void setUp() 41 { connection = TestConnection.makeAndCleanTestConnection(); 43 super.setUp(); 44 } 45 46 49 private GraphRDBMaker current; 50 51 54 public GraphMaker getGraphMaker() 55 { return current = new GraphRDBMaker( connection, ReificationStyle.Minimal ); } 56 57 61 public void tearDown() 62 { 63 super.tearDown(); 64 if (current != null) current.removeAll(); 65 try { connection.close(); } catch (Exception e) { throw new JenaException( e ); } 66 } 67 } 68 69 | Popular Tags |