You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by rv...@apache.org on 2014/11/10 11:53:49 UTC

[44/50] [abbrv] jena git commit: Use ConfigTest directory for params testing

Use ConfigTest directory for params testing


Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/b3f4e4cc
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/b3f4e4cc
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/b3f4e4cc

Branch: refs/heads/JENA-507
Commit: b3f4e4cc4ad68bc98f6d7b68885c5e8ff3352b83
Parents: 4a45e36
Author: Andy Seaborne <an...@apache.org>
Authored: Sat Nov 8 18:16:23 2014 +0000
Committer: Andy Seaborne <an...@apache.org>
Committed: Sat Nov 8 18:16:35 2014 +0000

----------------------------------------------------------------------
 .../com/hp/hpl/jena/tdb/setup/TestStoreParamsChoose.java | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/b3f4e4cc/jena-tdb/src/test/java/com/hp/hpl/jena/tdb/setup/TestStoreParamsChoose.java
----------------------------------------------------------------------
diff --git a/jena-tdb/src/test/java/com/hp/hpl/jena/tdb/setup/TestStoreParamsChoose.java b/jena-tdb/src/test/java/com/hp/hpl/jena/tdb/setup/TestStoreParamsChoose.java
index 8e985ae..6596e0d 100644
--- a/jena-tdb/src/test/java/com/hp/hpl/jena/tdb/setup/TestStoreParamsChoose.java
+++ b/jena-tdb/src/test/java/com/hp/hpl/jena/tdb/setup/TestStoreParamsChoose.java
@@ -22,11 +22,14 @@ import org.apache.jena.atlas.junit.BaseTest ;
 import org.apache.jena.atlas.lib.FileOps ;
 import org.junit.Test ;
 
+import com.hp.hpl.jena.tdb.ConfigTest ;
 import com.hp.hpl.jena.tdb.base.file.Location ;
 
 //TestParamsCreate
-/** This test suite uses on-diskstructures and can be slow */ 
+/** This test suite uses on-disk structures and can be slow */ 
 public class TestStoreParamsChoose extends BaseTest {
+    private String DIR = ConfigTest.getCleanDir() ;
+    
     static final StoreParams pApp = StoreParams.builder()
         .blockSize(12)              // Not dynamic
         .nodeMissCacheSize(12)      // Dynamic
@@ -105,7 +108,7 @@ public class TestStoreParamsChoose extends BaseTest {
     
     @Test public void params_choose_new_persist_1() {
         // new database, app defined.
-        Location loc = Location.create("target/test/DB") ;
+        Location loc = Location.create(DIR) ;
         FileOps.clearAll(loc.getDirectoryPath());
         // Clear.
         StoreParams p = Build.decideStoreParams(loc, true, pApp, null, pDft) ;
@@ -119,7 +122,7 @@ public class TestStoreParamsChoose extends BaseTest {
     
     @Test public void params_choose_new_persist_2() {
         // new database, location defined.
-        Location loc = Location.create("target/test/DB") ;
+        Location loc = Location.create(DIR) ;
         FileOps.clearAll(loc.getDirectoryPath());
         StoreParamsCodec.write(loc, pLoc); 
         
@@ -135,7 +138,7 @@ public class TestStoreParamsChoose extends BaseTest {
 
     @Test public void params_choose_new_persist_3() {
         // new database, location defined, application modified.
-        Location loc = Location.create("target/test/DB") ;
+        Location loc = Location.create(DIR) ;
         FileOps.clearAll(loc.getDirectoryPath());
         StoreParamsCodec.write(loc, pLoc);