@Test public void testIsSimilarTo_withFileInput() { expect(AssertionError.class); expectMessage("In Source"); expectMessage("test2.xml"); assertThat(new File(TEST_RESOURCE_DIR, "test1.xml"), isSimilarTo(new File(TEST_RESOURCE_DIR, "test2.xml"))); }
@Factory public static CompareMatcher isSimilarTo(final Object control) { return new CompareMatcher(control).checkForSimilar(); }
CompareMatcher extends BaseMatcher<Object> implements DifferenceEngineConfigurer<CompareMatcher> { @Factory public static CompareMatcher isSimilarTo(final Object control) { return new CompareMatcher(control).checkForSimilar(); } }
CompareMatcher extends BaseMatcher<Object> implements DifferenceEngineConfigurer<CompareMatcher> { @Factory public static CompareMatcher isSimilarTo(final Object control) { return new CompareMatcher(control).checkForSimilar(); } private  CompareMatcher(Object control); }
CompareMatcher extends BaseMatcher<Object> implements DifferenceEngineConfigurer<CompareMatcher> { @Factory public static CompareMatcher isSimilarTo(final Object control) { return new CompareMatcher(control).checkForSimilar(); } 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 isSimilarTo(final Object control) { return new CompareMatcher(control).checkForSimilar(); } 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);  }