Fix document resource jUnit

This commit is contained in:
jendib 2013-07-28 01:58:22 +02:00
parent c9fdb6def5
commit 21495f4509

View File

@ -71,7 +71,7 @@ public class TestDocumentResource extends BaseJerseyTest {
response = documentResource.post(ClientResponse.class, postParams);
Assert.assertEquals(Status.OK, Status.fromStatusCode(response.getStatus()));
json = response.getEntity(JSONObject.class);
Assert.assertEquals("ok", json.getString("status"));
Assert.assertEquals(document1Id, json.getString("id"));
// Get a document
documentResource = resource().path("/document/" + document1Id);