Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. HttpServletResponse response = mock(HttpServletResponse.class);
  2. System.out.println("Response: " + response); // Prints "Mock for HttpServletResponse, hashCode: 2051435028"
  3.  
  4. ServletActionContext.setResponse(response);
  5. System.out.println("Get Response: " + ServletActionContext.getResponse()); // Prints null.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement