Guest User

Untitled

a guest
Jun 19th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. public static <T extends ActionSupport> Matcher<T> hasActionMessage(final String messageText) {
  2. return new TypeSafeMatcher<T>() {
  3.  
  4. public boolean matchesSafely(T action) {
  5. return action.getActionMessages().contains(messageText);
  6. }
  7.  
  8. public void describeTo(Description description) {
  9. description.appendText("contains action message text '"+messageText+"'");
  10. }
  11. };
  12. }
Add Comment
Please, Sign In to add comment