use of org.apache.stanbol.commons.testing.http.Request in project stanbol by apache.
the class ReasonersOfflineJobsTest method testSubsequentJobs2.
@Test
public void testSubsequentJobs2() throws Exception {
log.info("testSubsequentJobs2()");
// We start all jobs and the we ping all
List<String> locations = new ArrayList<String>();
for (String s : allServices()) {
for (String t : TASKS) {
StringBuilder sb = new StringBuilder(REASONERS_PATH);
sb.append(s).append(t).append("/job");
Request request = buildMultipartRequest(sb.toString(), multiPart);
String location = createJob(request);
log.info("Started job {}", location);
locations.add(location);
}
}
// We ping all in sequence
for (String l : locations) {
pingSingleJob(l);
}
}
use of org.apache.stanbol.commons.testing.http.Request in project stanbol by apache.
the class ReasonersOfflineJobsTest method testSubsequentJobs.
@Test
public void testSubsequentJobs() throws Exception {
log.info("testSubsequentJobs()");
for (String s : allServices()) {
for (String t : TASKS) {
StringBuilder sb = new StringBuilder(REASONERS_PATH);
sb.append(s).append(t).append("/job");
Request request = buildMultipartRequest(sb.toString(), multiPart);
executeAndPingSingleJob(request);
}
}
}
use of org.apache.stanbol.commons.testing.http.Request in project stanbol by apache.
the class EntityhubTest method testEntityDeleteAll.
private void testEntityDeleteAll() throws IOException {
Request request = builder.buildOtherRequest(new HttpDelete(builder.buildUrl("/entityhub/entity", "id", "*")));
RequestExecutor re = executor.execute(request);
re.assertStatus(200);
}
Aggregations