1 6 7 package com.hp.hpl.jena.db.test; 8 9 import com.hp.hpl.jena.graph.query.test.*; 10 import com.hp.hpl.jena.graph.*; 11 import com.hp.hpl.jena.db.*; 12 import com.hp.hpl.jena.shared.*; 13 14 import junit.framework.*; 15 16 20 public class TestQueryRDB extends AbstractTestQuery 21 { 22 public TestQueryRDB( String name ) 23 { super( name ); } 24 25 public static TestSuite suite() 26 { return new TestSuite( TestQueryRDB.class ); } 27 28 private IDBConnection theConnection; 29 private int count = 0; 30 31 public void setUp() 32 { 33 theConnection = TestConnection.makeAndCleanTestConnection(); 34 super.setUp(); 35 } 36 37 public void tearDown() 38 { 39 try { theConnection.close(); } 40 catch (Exception e) { throw new JenaException( e ); } 41 } 42 43 public Graph getGraph() 44 { 45 return new GraphRDB 46 ( 47 theConnection, 48 "testGraph-" + count ++, 49 theConnection.getDefaultModelProperties().getGraph(), 50 GraphRDB.OPTIMIZE_AND_HIDE_ONLY_FULL_REIFICATIONS, 51 true 52 ); 53 } 54 55 } 56 57 58 59 60 61 | Popular Tags |