mirror of
https://github.com/sismics/docs.git
synced 2024-11-25 23:27:57 +01:00
Fix document resource jUnit
This commit is contained in:
parent
c9fdb6def5
commit
21495f4509
@ -71,7 +71,7 @@ public class TestDocumentResource extends BaseJerseyTest {
|
|||||||
response = documentResource.post(ClientResponse.class, postParams);
|
response = documentResource.post(ClientResponse.class, postParams);
|
||||||
Assert.assertEquals(Status.OK, Status.fromStatusCode(response.getStatus()));
|
Assert.assertEquals(Status.OK, Status.fromStatusCode(response.getStatus()));
|
||||||
json = response.getEntity(JSONObject.class);
|
json = response.getEntity(JSONObject.class);
|
||||||
Assert.assertEquals("ok", json.getString("status"));
|
Assert.assertEquals(document1Id, json.getString("id"));
|
||||||
|
|
||||||
// Get a document
|
// Get a document
|
||||||
documentResource = resource().path("/document/" + document1Id);
|
documentResource = resource().path("/document/" + document1Id);
|
||||||
|
Loading…
Reference in New Issue
Block a user