assertFalse(handler.match(tokens, Handler.definitions()));
}
public void testHandlerClass2() {
Handler handler = new Handler(new DummyHandler(), new TagPattern(Repeater.class), new TagPattern(Repeater.class, true));
List<Token> tokens = new LinkedList<Token>();
tokens.add(new Token("friday"));
tokens.get(0).tag(new RepeaterDayName(RepeaterDayName.DayName.FRIDAY));
assertTrue(handler.match(tokens, Handler.definitions()));
tokens.add(new Token("afternoon"));
tokens.get(1).tag(new EnumRepeaterDayPortion(RepeaterDayPortion.DayPortion.AFTERNOON));
assertTrue(handler.match(tokens, Handler.definitions()));
tokens.add(new Token("afternoon"));
tokens.get(2).tag(new EnumRepeaterDayPortion(RepeaterDayPortion.DayPortion.AFTERNOON));
assertFalse(handler.match(tokens, Handler.definitions()));
}