use of org.apache.jena.query.DatasetAccessor in project jena by apache.
the class TestAuth method graphstore_with_auth_04.
@Test(expected = HttpException.class)
public void graphstore_with_auth_04() throws URISyntaxException {
// Correct auth credentials scoped to wrong URI
DatasetAccessor accessor = DatasetAccessorFactory.createHTTP(authServiceREST, withBasicAuth(new AuthScope("example.org", authPort), "allowed", "password"));
accessor.getModel();
}
use of org.apache.jena.query.DatasetAccessor in project jena by apache.
the class TestAuth method graphstore_with_auth_05.
@Test
public void graphstore_with_auth_05() throws URISyntaxException {
// Correct auth credentials scoped to correct URI
DatasetAccessor accessor = DatasetAccessorFactory.createHTTP(authServiceREST, withBasicAuth(new AuthScope("localhost", authPort), "allowed", "password"));
accessor.getModel();
}
Aggregations