jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cla...@apache.org
Subject [48/50] [abbrv] jena git commit: file graph test
Date Sun, 10 May 2015 13:04:17 GMT
file graph test


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

Branch: refs/heads/add-contract-tests
Commit: c004d800faa51284954ec353f3266bff6cf7fe67
Parents: 608c2b4
Author: Claude Warren <claude@apache.org>
Authored: Thu Apr 30 18:17:33 2015 +0100
Committer: Claude Warren <claude@apache.org>
Committed: Sat May 9 16:15:32 2015 +0100

----------------------------------------------------------------------
 .../test/java/org/apache/jena/graph/impl/FileGraph_CS.java    | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/c004d800/jena-core/src/test/java/org/apache/jena/graph/impl/FileGraph_CS.java
----------------------------------------------------------------------
diff --git a/jena-core/src/test/java/org/apache/jena/graph/impl/FileGraph_CS.java b/jena-core/src/test/java/org/apache/jena/graph/impl/FileGraph_CS.java
index b7bb6c3..1b4d321 100644
--- a/jena-core/src/test/java/org/apache/jena/graph/impl/FileGraph_CS.java
+++ b/jena-core/src/test/java/org/apache/jena/graph/impl/FileGraph_CS.java
@@ -30,8 +30,8 @@ import org.xenei.junit.contract.ContractImpl;
 import org.xenei.junit.contract.ContractSuite;
 import org.xenei.junit.contract.IProducer;
 
-@RunWith(ContractSuite.class)
-@ContractImpl(FileGraph.class)
+//@RunWith(ContractSuite.class)
+//@ContractImpl(FileGraph.class)
 public class FileGraph_CS {
 	 
 	protected IProducer<FileGraph> graphProducer;
@@ -52,10 +52,11 @@ public class FileGraph_CS {
 			File f;
 			try {
 				f = File.createTempFile("fgp", ".ttl" );
+				f.delete();
 			} catch (IOException e) {
 				throw new RuntimeException( "Can not create file", e );
 			}
-			return new FileGraph( f, false, true );
+			return new FileGraph( f, true, true );
 		}
 
 		@Override


Mime
View raw message