You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2013/07/02 13:40:55 UTC
svn commit: r1498887 -
/jena/trunk/jena-fuseki/src/test/java/org/apache/jena/fuseki/TestAuth.java
Author: andy
Date: Tue Jul 2 11:40:55 2013
New Revision: 1498887
URL: http://svn.apache.org/r1498887
Log:
Remove "throws" for exception (URISynatxException) not thrown.
Modified:
jena/trunk/jena-fuseki/src/test/java/org/apache/jena/fuseki/TestAuth.java
Modified: jena/trunk/jena-fuseki/src/test/java/org/apache/jena/fuseki/TestAuth.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-fuseki/src/test/java/org/apache/jena/fuseki/TestAuth.java?rev=1498887&r1=1498886&r2=1498887&view=diff
==============================================================================
--- jena/trunk/jena-fuseki/src/test/java/org/apache/jena/fuseki/TestAuth.java (original)
+++ jena/trunk/jena-fuseki/src/test/java/org/apache/jena/fuseki/TestAuth.java Tue Jul 2 11:40:55 2013
@@ -31,21 +31,20 @@ import org.apache.jena.atlas.web.HttpExc
import org.apache.jena.atlas.web.auth.PreemptiveBasicAuthenticator ;
import org.apache.jena.atlas.web.auth.ScopedAuthenticator ;
import org.apache.jena.atlas.web.auth.ServiceAuthenticator ;
-import org.apache.jena.atlas.web.auth.SimpleAuthenticator;
+import org.apache.jena.atlas.web.auth.SimpleAuthenticator ;
import org.apache.jena.fuseki.server.FusekiConfig ;
import org.apache.jena.fuseki.server.SPARQLServer ;
import org.apache.jena.fuseki.server.ServerConfig ;
import org.junit.AfterClass ;
import org.junit.Assert ;
import org.junit.BeforeClass ;
-import org.junit.Ignore;
import org.junit.Test ;
import com.hp.hpl.jena.query.ARQ ;
-import com.hp.hpl.jena.query.DatasetAccessor;
-import com.hp.hpl.jena.query.DatasetAccessorFactory;
+import com.hp.hpl.jena.query.DatasetAccessor ;
+import com.hp.hpl.jena.query.DatasetAccessorFactory ;
import com.hp.hpl.jena.query.QueryExecutionFactory ;
-import com.hp.hpl.jena.rdf.model.Model;
+import com.hp.hpl.jena.rdf.model.Model ;
import com.hp.hpl.jena.sparql.core.DatasetGraph ;
import com.hp.hpl.jena.sparql.core.DatasetGraphFactory ;
import com.hp.hpl.jena.sparql.engine.http.QueryEngineHTTP ;
@@ -60,7 +59,6 @@ import com.hp.hpl.jena.update.UpdateRequ
/**
* Tests Fuseki operation with authentication enabled
*/
-@SuppressWarnings("javadoc")
public class TestAuth extends ServerTest {
private static File realmFile;
@@ -385,21 +383,21 @@ public class TestAuth extends ServerTest
}
@Test(expected = HttpException.class)
- public void graphstore_with_auth_01() throws URISyntaxException {
+ public void graphstore_with_auth_01() {
// No auth credentials
DatasetAccessor accessor = DatasetAccessorFactory.createHTTP(serviceREST);
accessor.getModel();
}
@Test(expected = HttpException.class)
- public void graphstore_with_auth_02() throws URISyntaxException {
+ public void graphstore_with_auth_02() {
// Incorrect auth credentials
DatasetAccessor accessor = DatasetAccessorFactory.createHTTP(serviceREST, new SimpleAuthenticator("allowed", "incorrect".toCharArray()));
accessor.getModel();
}
@Test
- public void graphstore_with_auth_03() throws URISyntaxException {
+ public void graphstore_with_auth_03() {
// Correct auth credentials
DatasetAccessor accessor = DatasetAccessorFactory.createHTTP(serviceREST, new SimpleAuthenticator("allowed", "password".toCharArray()));
Model m = accessor.getModel();