You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@clerezza.apache.org by re...@apache.org on 2009/12/14 13:30:25 UTC
svn commit: r890294 -
/incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.rdf.sesame.storage/src/test/java/org/apache/clerezza/rdf/sesame/storage/SesameGraphTestSupport.java
Author: reto
Date: Mon Dec 14 12:30:24 2009
New Revision: 890294
URL: http://svn.apache.org/viewvc?rev=890294&view=rev
Log:
CLEREZZA-21: SesameGraphTestSupport no longer creates tmp dir in working dir
Modified:
incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.rdf.sesame.storage/src/test/java/org/apache/clerezza/rdf/sesame/storage/SesameGraphTestSupport.java
Modified: incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.rdf.sesame.storage/src/test/java/org/apache/clerezza/rdf/sesame/storage/SesameGraphTestSupport.java
URL: http://svn.apache.org/viewvc/incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.rdf.sesame.storage/src/test/java/org/apache/clerezza/rdf/sesame/storage/SesameGraphTestSupport.java?rev=890294&r1=890293&r2=890294&view=diff
==============================================================================
--- incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.rdf.sesame.storage/src/test/java/org/apache/clerezza/rdf/sesame/storage/SesameGraphTestSupport.java (original)
+++ incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.rdf.sesame.storage/src/test/java/org/apache/clerezza/rdf/sesame/storage/SesameGraphTestSupport.java Mon Dec 14 12:30:24 2009
@@ -9,6 +9,7 @@
package org.apache.clerezza.rdf.sesame.storage;
import java.io.File;
+import java.io.IOException;
import java.util.Collection;
import java.util.Iterator;
import java.util.LinkedList;
@@ -32,9 +33,9 @@
* @param testName Name of the test to support.
* @throws RepositoryException If it failed to activate the graph.
*/
- public SesameMGraph setUp(String testName) throws RepositoryException {
- final File userDir= new File(System.getProperty("user.dir"));
- final File dataDir= new File(userDir, "tmp/SesameGraphTest");
+ public SesameMGraph setUp(String testName) throws RepositoryException, IOException {
+ final File dataDir= File.createTempFile("SesameGraph", "Test");
+ dataDir.delete();
dataDir.mkdirs();
cleanDirectory(dataDir);