| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | describeTo(Description
The description to be built or appended to. description)Implements org. |
| public static Matcher | eventFrom(Class<? extends EventObject>
the class of the event to match on eventClass, Object the source of the event source)Creates a matcher of |
| public static Matcher | eventFrom(Object
the source of the event source)Creates a matcher of |
| private boolean | |
| public boolean | matchesSafely(EventObject item, Description mismatchDescription)
Implements abstract org. |
| eventClass | back to summary |
|---|---|
| private final Class<?> eventClass | |
| source | back to summary |
|---|---|
| private final Object source | |
| IsEventFrom | back to summary |
|---|---|
| public IsEventFrom(Class<?> eventClass, Object source) | |
| describeTo | back to summary |
|---|---|
| public void describeTo(Description description) Implements org. Doc from org. Generates a description of the object. The description may be part of a a description of a larger object of which this is just a component, so it should be worded appropriately.
| |
| eventFrom | back to summary |
|---|---|
| public static Matcher Creates a matcher of assertThat(myEvent, is(eventFrom(PropertyChangeEvent.class, myBean)))
| |
| eventFrom | back to summary |
|---|---|
| public static Matcher Creates a matcher of assertThat(myEvent, is(eventFrom(myBean)))
| |
| eventHasSameSource | back to summary |
|---|---|
| private boolean eventHasSameSource(EventObject ev) | |
| matchesSafely | back to summary |
|---|---|
| public boolean matchesSafely(EventObject item, Description mismatchDescription) Implements abstract org. Doc from org. Subclasses should implement this. The item will already have been checked for the specific type and will never be null.
| |