/** Returns true if the two trees are equal. */ @Override public boolean isEqual() { return comparison.isEqualMappedBy(mapExpected, mapActual); }
/** * Asserts that the trees are equal, by calling {@link Objects#equals(Object, Object)} on the results of both mappers. * * @see #isEqualMappedBy(Function, Function) */ public void assertEqualMappedBy(Function<? super E, ?> expectedMapper, Function<? super A, ?> actualMapper) { if (!isEqualMappedBy(expectedMapper, actualMapper)) { throwAssertionError(); } }