DEV Community

Discussion on: Json conversion errors with Spring MockMvc

Collapse
 
dreambrother profile image
Nikita Shmakov • Edited

Another solution :)

Matcher<Double> isDouble(Double d) {
    return anyOf(is(d), is(BigDecimal.valueOf(d)));
}