use of org.apache.jena.sparql.modify.UpdateProcessRemoteBase in project jena by apache.
the class TestAuth method update_with_auth_01.
@Test(expected = HttpException.class)
public void update_with_auth_01() {
UpdateRequest updates = UpdateFactory.create("CREATE SILENT GRAPH <http://graph>");
UpdateProcessRemoteBase ue = (UpdateProcessRemoteBase) UpdateExecutionFactory.createRemote(updates, authServiceUpdate);
// No auth credentials should result in an error
ue.execute();
}
use of org.apache.jena.sparql.modify.UpdateProcessRemoteBase in project jena by apache.
the class TestAuth method update_with_auth_07.
@Test
public void update_with_auth_07() {
UpdateRequest updates = UpdateFactory.create("CREATE SILENT GRAPH <http://graph>");
UpdateProcessRemoteBase ue = (UpdateProcessRemoteBase) UpdateExecutionFactory.createRemoteForm(updates, authServiceUpdate);
// Auth credentials for valid user with correct password
ue.setClient(withBasicAuth(ANY, "allowed", "password"));
ue.execute();
}
use of org.apache.jena.sparql.modify.UpdateProcessRemoteBase in project jena by apache.
the class TestAuth method update_with_auth_03.
@Test
public void update_with_auth_03() {
UpdateRequest updates = UpdateFactory.create("CREATE SILENT GRAPH <http://graph>");
UpdateProcessRemoteBase ue = (UpdateProcessRemoteBase) UpdateExecutionFactory.createRemote(updates, authServiceUpdate);
// Auth credentials for valid user with correct password
ue.setClient(withBasicAuth(ANY, "allowed", "password"));
ue.execute();
}
Aggregations