Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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+"'");
- }
- };
- }
Add Comment
Please, Sign In to add comment