assertEquals("Document matched", 1, matcher.matches.size());
assertEquals("Document matched", document, matcher.matches.get(0));
}
public void testNoMatch() throws Exception {
MockDocumentMatcher matcher = new MockDocumentMatcher(false);
ConditionalAnalyser conditionalAnalyser = new ConditionalAnalyser(matcher, analyser);
assertFalse("Returns match value", conditionalAnalyser.matches(document));
assertEquals("Not Documents analysed", 0, analyser.matches.size());
assertEquals("Document matched", 1, matcher.matches.size());
assertEquals("Document matched", document, matcher.matches.get(0));