Home
last modified time | relevance | path

Searched refs:isEventMatcher (Results 1 – 1 of 1) sorted by relevance

/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/object/
DIsEventFromTest.java24 Matcher<EventObject> isEventMatcher = eventFrom(o); in testEvaluatesToTrueIfArgumentIsAnEventObjectFiredByASpecifiedSource() local
26 assertThat(ev, isEventMatcher); in testEvaluatesToTrueIfArgumentIsAnEventObjectFiredByASpecifiedSource()
27 assertMismatchDescription("source was \"source 2\"", isEventMatcher, ev2); in testEvaluatesToTrueIfArgumentIsAnEventObjectFiredByASpecifiedSource()
45 Matcher<EventObject> isEventMatcher = IsEventFrom.eventFrom(DerivedEvent.class, o); in testCanTestForSpecificEventClasses() local
47 assertThat(goodEv, isEventMatcher); in testCanTestForSpecificEventClasses()
48 assertMismatchDescription("source was \"wrong source\"", isEventMatcher, wrongSource); in testCanTestForSpecificEventClasses()
49 assertMismatchDescription("item type was java.util.EventObject", isEventMatcher, wrongType); in testCanTestForSpecificEventClasses()
50 …assertMismatchDescription("item type was java.util.EventObject", isEventMatcher, wrongSourceAndTyp… in testCanTestForSpecificEventClasses()