public void correctHandlingOfDouble_IntMismatch() {
String jsonContent = makeJson(" { 'thing' : 5.00 } ");
driver.addExpectation(new ClientDriverRequest("/"), new ClientDriverResponse(jsonContent, "application/json"));
Response response = get(baseUrl);
assertThat(response.asJson(), not(hasJsonPath("$.thing", is(5)))); // it's 5.0, not 5 dammit!
}
@Test(expected = RuntimeJsonTypeMismatchException.class)
public void matchingIntWhenNumberOverflows() {
String jsonContent = makeJson(" { 'thing' : 4294967294 } ");