jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1446094 - /jena/trunk/jena-fuseki/src/test/java/org/apache/jena/fuseki/TestQuery.java
Date Thu, 14 Feb 2013 10:00:08 GMT
Author: andy
Date: Thu Feb 14 10:00:07 2013
New Revision: 1446094

URL: http://svn.apache.org/r1446094
Log:
Remove warning when running test - supply valid query.

Modified:
    jena/trunk/jena-fuseki/src/test/java/org/apache/jena/fuseki/TestQuery.java

Modified: jena/trunk/jena-fuseki/src/test/java/org/apache/jena/fuseki/TestQuery.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-fuseki/src/test/java/org/apache/jena/fuseki/TestQuery.java?rev=1446094&r1=1446093&r2=1446094&view=diff
==============================================================================
--- jena/trunk/jena-fuseki/src/test/java/org/apache/jena/fuseki/TestQuery.java (original)
+++ jena/trunk/jena-fuseki/src/test/java/org/apache/jena/fuseki/TestQuery.java Thu Feb 14
10:00:07 2013
@@ -18,13 +18,11 @@
 
 package org.apache.jena.fuseki;
 
-import java.io.IOException;
-import java.net.HttpURLConnection;
-import java.net.URL;
-import junit.framework.Assert;
+import java.io.IOException ;
+import java.net.HttpURLConnection ;
+import java.net.URL ;
 
-import org.apache.jena.fuseki.DatasetAccessor ;
-import org.apache.jena.fuseki.DatasetAccessorFactory ;
+import junit.framework.Assert ;
 import org.junit.AfterClass ;
 import org.junit.BeforeClass ;
 import org.junit.Test ;
@@ -37,6 +35,7 @@ import com.hp.hpl.jena.sparql.resultset.
 import com.hp.hpl.jena.sparql.sse.Item ;
 import com.hp.hpl.jena.sparql.sse.SSE ;
 import com.hp.hpl.jena.sparql.sse.builders.BuilderResultSet ;
+import com.hp.hpl.jena.sparql.util.Convert ;
 
 public class TestQuery extends BaseServerTest 
 {
@@ -70,7 +69,8 @@ public class TestQuery extends BaseServe
     
     @Test public void request_id_header_01() throws IOException
     {
-        URL u = new URL(serviceQuery);
+        String qs = Convert.encWWWForm("ASK{}") ;
+        URL u = new URL(serviceQuery+"?query="+qs);
         HttpURLConnection conn = (HttpURLConnection) u.openConnection();
         Assert.assertTrue(conn.getHeaderField("Fuseki-Request-ID") != null);
     }



Mime
View raw message