Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HttpServletResponse response = mock(HttpServletResponse.class);
- System.out.println("Response: " + response); // Prints "Mock for HttpServletResponse, hashCode: 2051435028"
- ServletActionContext.setResponse(response);
- System.out.println("Get Response: " + ServletActionContext.getResponse()); // Prints null.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement