Created
October 23, 2010 19:35
-
-
Save searls/642600 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static <T extends ActionSupport> Matcher<T> hasActionMessage(final String messageText) { | |
return new TypeSafeMatcher<T>() { | |
public boolean matchesSafely(T action) { | |
return action.getActionMessages().contains(messageText); | |
} | |
public void describeTo(Description description) { | |
description.appendText("contains action message text '"+messageText+"'"); | |
} | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment