/** * Matches the node using Hamcrest matcher. * * <ul> * <li>Numbers are mapped to BigDecimal</li> * <li>Arrays are mapped to a Collection</li> * <li>Objects are mapped to a map so you can use json(Part)Equals or a Map matcher</li> * </ul> * * @param matcher * @return */ public JsonFluentAssert matches(Matcher<?> matcher) { isPresent(); match(actual, path, matcher); return this; }
/** * Matches the node using Hamcrest matcher. * * <ul> * <li>Numbers are mapped to BigDecimal</li> * <li>Arrays are mapped to a Collection</li> * <li>Objects are mapped to a map so you can use json(Part)Equals or a Map matcher</li> * </ul> * * @param matcher * @return */ public JsonFluentAssert matches(Matcher<?> matcher) { isPresent(); match(actual, path, matcher); return this; }