You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2014/05/03 19:34:07 UTC
svn commit: r1592256 -
/jena/trunk/jena-tdb/src/test/java/com/hp/hpl/jena/tdb/TC_TDB.java
Author: andy
Date: Sat May 3 17:34:07 2014
New Revision: 1592256
URL: http://svn.apache.org/r1592256
Log:
Tidy up.
Modified:
jena/trunk/jena-tdb/src/test/java/com/hp/hpl/jena/tdb/TC_TDB.java
Modified: jena/trunk/jena-tdb/src/test/java/com/hp/hpl/jena/tdb/TC_TDB.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-tdb/src/test/java/com/hp/hpl/jena/tdb/TC_TDB.java?rev=1592256&r1=1592255&r2=1592256&view=diff
==============================================================================
--- jena/trunk/jena-tdb/src/test/java/com/hp/hpl/jena/tdb/TC_TDB.java (original)
+++ jena/trunk/jena-tdb/src/test/java/com/hp/hpl/jena/tdb/TC_TDB.java Sat May 3 17:34:07 2014
@@ -26,6 +26,7 @@ import org.junit.runner.RunWith ;
import org.junit.runners.Suite ;
import com.hp.hpl.jena.sparql.engine.optimizer.reorder.ReorderLib ;
+import com.hp.hpl.jena.sparql.engine.optimizer.reorder.ReorderTransformation ;
import com.hp.hpl.jena.tdb.assembler.TS_TDBAssembler ;
import com.hp.hpl.jena.tdb.base.TC_Base ;
import com.hp.hpl.jena.tdb.base.block.FileMode ;
@@ -67,20 +68,19 @@ public class TC_TDB
if ( false )
SystemTDB.setFileMode(FileMode.direct) ;
}
-
+ static ReorderTransformation dftReorder = null ;
+
@BeforeClass static public void beforeClass()
{
//org.apache.log4j.LogManager.resetConfiguration() ;
//org.apache.log4j.PropertyConfigurator.configure("log4j.properties") ;
Logger.getLogger("com.hp.hpl.jena.tdb.info").setLevel(Level.WARN) ;
//Logger.getLogger("com.hp.hpl.jena.tdb.exec").setLevel(Level.WARN) ;
+ dftReorder = SystemTDB.defaultOptimizer ;
SystemTDB.defaultOptimizer = ReorderLib.identity() ;
}
- @AfterClass static public void afterClass() {}
-
- // For "ant" before 1.7 that only understands JUnit3.
- public static junit.framework.Test suite() {
- return new junit.framework.JUnit4TestAdapter(TC_TDB.class) ;
+ @AfterClass static public void afterClass() {
+ SystemTDB.defaultOptimizer = dftReorder ;
}
}