@Test public void testAccept() { assertTrue(check(incomeMessage).accept(somethingTrue)); verify(somethingTrue).test(incomeMessage); }
public boolean accept(Predicate<IncomeMessage> predicate) { return predicate.test(message); }
MessageChecker { public boolean accept(Predicate<IncomeMessage> predicate) { return predicate.test(message); } }
MessageChecker { public boolean accept(Predicate<IncomeMessage> predicate) { return predicate.test(message); } private  MessageChecker(IncomeMessage message); }
MessageChecker { public boolean accept(Predicate<IncomeMessage> predicate) { return predicate.test(message); } private  MessageChecker(IncomeMessage message); boolean accept(Predicate<IncomeMessage> predicate); boolean reject(Predicate<IncomeMessage> predicate); static MessageChecker check(IncomeMessage message); }
MessageChecker { public boolean accept(Predicate<IncomeMessage> predicate) { return predicate.test(message); } private  MessageChecker(IncomeMessage message); boolean accept(Predicate<IncomeMessage> predicate); boolean reject(Predicate<IncomeMessage> predicate); static MessageChecker check(IncomeMessage message);  }