Skip to content

Commit

Permalink
[RESTEASY-1665]:Imporve JsonBindingTest to verify if JsonBindingProvi…
Browse files Browse the repository at this point in the history
…der is enabled
  • Loading branch information
jimma authored and asoldano committed Aug 31, 2017
1 parent 680103d commit 97a4b03
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ public void doTestCat() throws Exception {
Entity<Cat> entity = Entity.entity(
new Cat("Rosa", "semi-british", "tabby", true), mediaType);
Cat json = target.request().post(entity, Cat.class);
logger.info("Request entity: " + json);
logger.info("Request entity: " + entity);
Assert.assertTrue("Failed to return the correct name", "Alfred".equals(json.getName()));
String jsonbResponse = target.request().post(entity).readEntity(String.class);
Assert.assertEquals("JsonBindingProvider is not enabled", "{\"color\":\"ginger\",\"domesticated\":true,\"name\":\"Alfred\",\"sort\":\"semi-british\"}", jsonbResponse);
}
}

0 comments on commit 97a4b03

Please sign in to comment.