1 6 7 package jena.test; 8 9 import junit.framework.TestSuite; 10 11 import com.hp.hpl.jena.rdql.test.QueryTestProgrammatic; 12 import com.hp.hpl.jena.rdql.test.QueryTestScripts; 13 import com.hp.hpl.jena.rdql.test.TestExpressions; 14 import com.hp.hpl.jena.shared.Command; 15 16 public class rdfquery implements Command 17 { 18 protected String testFile; 19 20 public rdfquery( String testFile ) 21 { this.testFile = testFile; } 22 23 public Object execute() 24 { 25 if (testFile.equals( "-all" )) 26 { TestSuite ts = new TestSuite("RDQL") ; 27 ts.addTest(TestExpressions.suite()) ; 28 ts.addTest(QueryTestProgrammatic.suite()) ; 30 junit.textui.TestRunner.run(ts) ; } 31 else 32 { TestSuite suite = new QueryTestScripts( testFile ) ; 33 junit.textui.TestRunner.run(suite) ; } 34 return null; 35 } 36 } 37 38 67 68 | Popular Tags |