01: package servletunit.struts.tests;
02:
03: import servletunit.struts.MockStrutsTestCase;
04: import servletunit.HttpServletRequestSimulator;
05: import servletunit.HttpServletResponseSimulator;
06:
07: import java.security.Principal;
08:
09: /**
10: * Created by IntelliJ IDEA.
11: * User: deryl
12: * Date: May 21, 2003
13: * Time: 2:25:53 PM
14: * To change this template use Options | File Templates.
15: */
16: public class TestGetMockObjects extends MockStrutsTestCase {
17:
18: public TestGetMockObjects(String testName) {
19: super (testName);
20: }
21:
22: public void testGetMockObjects() {
23: HttpServletRequestSimulator request = this .getMockRequest();
24: request.setUserRole("foo");
25: HttpServletResponseSimulator response = this.getMockResponse();
26: response.getStatusCode();
27: }
28: }
|