|
a/test/net/timbusproject/dpes/alternative/ReasonerClient/REST/ReasonerWebClientTest.java |
|
b/test/net/timbusproject/dpes/alternative/ReasonerClient/REST/ReasonerWebClientTest.java |
|
... |
|
... |
44 |
|
44 |
|
45 |
@Test
|
45 |
@Test
|
46 |
public void testRequestResult_noUuid_shouldReturnValidResponse() throws IOException, ReasonerClientException, XPathExpressionException {
|
46 |
public void testRequestResult_noUuid_shouldReturnValidResponse() throws IOException, ReasonerClientException, XPathExpressionException {
|
47 |
ReasonerWebClient client = new ReasonerWebClient();
|
47 |
ReasonerWebClient client = new ReasonerWebClient();
|
48 |
JSONObject jsonObject = client.requestReasoning(TestHelper.createTestRequest().toString());
|
48 |
JSONObject jsonObject = client.requestReasoning(TestHelper.createTestRequest().toString());
|
49 |
JSONObject actual = client.requestResult(jsonObject.getString("uuid"));
|
49 |
JSONObject actual = client.requestResult(String.valueOf(jsonObject.getInt("id")));
|
50 |
assertThat(actual.toString(), not(isEmptyOrNullString()));
|
50 |
assertThat(actual.toString(), not(isEmptyOrNullString()));
|
51 |
}
|
51 |
}
|
52 |
}
|
52 |
}
|