jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [1/4] jena git commit: Quick fix for test-related NPE
Date Thu, 29 Mar 2018 12:42:09 GMT
Repository: jena
Updated Branches:
  refs/heads/master be946b425 -> 930d4d333


Quick fix for test-related NPE


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

Branch: refs/heads/master
Commit: 30d00375dd0b7ab5e543e74638c012eb79f8afbf
Parents: be946b4
Author: Andy Seaborne <andy@apache.org>
Authored: Thu Mar 29 13:01:27 2018 +0100
Committer: Andy Seaborne <andy@apache.org>
Committed: Thu Mar 29 13:01:27 2018 +0100

----------------------------------------------------------------------
 .../rdfconnection/TestRDFConnectionFusekiBinary.java   | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/30d00375/jena-integration-tests/src/test/java/org/apache/jena/test/rdfconnection/TestRDFConnectionFusekiBinary.java
----------------------------------------------------------------------
diff --git a/jena-integration-tests/src/test/java/org/apache/jena/test/rdfconnection/TestRDFConnectionFusekiBinary.java
b/jena-integration-tests/src/test/java/org/apache/jena/test/rdfconnection/TestRDFConnectionFusekiBinary.java
index 9619798..5084353 100644
--- a/jena-integration-tests/src/test/java/org/apache/jena/test/rdfconnection/TestRDFConnectionFusekiBinary.java
+++ b/jena-integration-tests/src/test/java/org/apache/jena/test/rdfconnection/TestRDFConnectionFusekiBinary.java
@@ -51,15 +51,20 @@ public class TestRDFConnectionFusekiBinary {
         model.getGraph().add(triple);
         
         int PORT = FusekiLib.choosePort();
-        FusekiServer server = createFusekiServer(PORT).build().start();
+        FusekiServer server = createFusekiServer(PORT).build().start(); 
         try {
             String dsURL = "http://localhost:"+PORT+"/ds" ;
-            assertTrue(FusekiLib.isFuseki(dsURL)); 
-
+			{
+				boolean b1 = FusekiLib.isFuseki(dsURL);
+				assertTrue("isFuseki(1)", b1) ; 
+			}
             RDFConnectionRemoteBuilder builder = RDFConnectionFuseki.create().destination(dsURL);
 
             try (RDFConnectionFuseki conn = (RDFConnectionFuseki)builder.build()) {
-                assertTrue(FusekiLib.isFuseki(conn));
+				{
+					boolean b2 = FusekiLib.isFuseki(conn);   
+					assertTrue("isFuseki(2)", b2);
+				}
                 // GSP
                 conn.put(model);
                 checkModel(conn, "b3456");


Mime
View raw message