@Test public void testIsIdenticalTo_withAssertionErrorForAttributes_throwsReadableMessage() { expect(AssertionError.class); expectMessage("Expected attribute value 'xy' but was 'xyz'"); expectMessage("at /Element[1]/@attr2"); expectMessage("attr2=\"xyz\""); assertThat("<Element attr2=\"xyz\" attr1=\"12\"/>", isIdenticalTo("<Element attr1=\"12\" attr2=\"xy\"/>")); }
@Factory public static CompareMatcher isIdenticalTo(final Object control) { return new CompareMatcher(control).checkForIdentical(); }
CompareMatcher extends BaseMatcher<Object> implements DifferenceEngineConfigurer<CompareMatcher> { @Factory public static CompareMatcher isIdenticalTo(final Object control) { return new CompareMatcher(control).checkForIdentical(); } }
CompareMatcher extends BaseMatcher<Object> implements DifferenceEngineConfigurer<CompareMatcher> { @Factory public static CompareMatcher isIdenticalTo(final Object control) { return new CompareMatcher(control).checkForIdentical(); } private  CompareMatcher(Object control); }
CompareMatcher extends BaseMatcher<Object> implements DifferenceEngineConfigurer<CompareMatcher> { @Factory public static CompareMatcher isIdenticalTo(final Object control) { return new CompareMatcher(control).checkForIdentical(); } private  CompareMatcher(Object control); @Factory static CompareMatcher isIdenticalTo(final Object control); @Factory static CompareMatcher isSimilarTo(final Object control); CompareMatcher ignoreWhitespace(); CompareMatcher normalizeWhitespace(); CompareMatcher ignoreComments(); CompareMatcher ignoreElementContentWhitespace(); CompareMatcher ignoreCommentsUsingXSLTVersion(String xsltVersion); @Override CompareMatcher withNodeMatcher(NodeMatcher nodeMatcher); @Override CompareMatcher withDifferenceEvaluator(DifferenceEvaluator differenceEvaluator); @Override CompareMatcher withComparisonListeners(ComparisonListener... comparisonListeners); @Override CompareMatcher withDifferenceListeners(ComparisonListener... comparisonListeners); @Override CompareMatcher withNamespaceContext(Map<String, String> prefix2Uri); @Override CompareMatcher withAttributeFilter(Predicate<Attr> attributeFilter); @Override CompareMatcher withNodeFilter(Predicate<Node> nodeFilter); CompareMatcher throwComparisonFailure(); @Override CompareMatcher withComparisonFormatter(ComparisonFormatter comparisonFormatter); CompareMatcher withDocumentBuilderFactory(DocumentBuilderFactory f); @Override CompareMatcher withComparisonController(final ComparisonController comparisonController); @Override boolean matches(Object item); @Override void describeTo(Description description); @Override void describeMismatch(final Object item, final Description description); }
CompareMatcher extends BaseMatcher<Object> implements DifferenceEngineConfigurer<CompareMatcher> { @Factory public static CompareMatcher isIdenticalTo(final Object control) { return new CompareMatcher(control).checkForIdentical(); } private  CompareMatcher(Object control); @Factory static CompareMatcher isIdenticalTo(final Object control); @Factory static CompareMatcher isSimilarTo(final Object control); CompareMatcher ignoreWhitespace(); CompareMatcher normalizeWhitespace(); CompareMatcher ignoreComments(); CompareMatcher ignoreElementContentWhitespace(); CompareMatcher ignoreCommentsUsingXSLTVersion(String xsltVersion); @Override CompareMatcher withNodeMatcher(NodeMatcher nodeMatcher); @Override CompareMatcher withDifferenceEvaluator(DifferenceEvaluator differenceEvaluator); @Override CompareMatcher withComparisonListeners(ComparisonListener... comparisonListeners); @Override CompareMatcher withDifferenceListeners(ComparisonListener... comparisonListeners); @Override CompareMatcher withNamespaceContext(Map<String, String> prefix2Uri); @Override CompareMatcher withAttributeFilter(Predicate<Attr> attributeFilter); @Override CompareMatcher withNodeFilter(Predicate<Node> nodeFilter); CompareMatcher throwComparisonFailure(); @Override CompareMatcher withComparisonFormatter(ComparisonFormatter comparisonFormatter); CompareMatcher withDocumentBuilderFactory(DocumentBuilderFactory f); @Override CompareMatcher withComparisonController(final ComparisonController comparisonController); @Override boolean matches(Object item); @Override void describeTo(Description description); @Override void describeMismatch(final Object item, final Description description);  }