1 7 package com.inversoft.verge.mvc.controller.test; 8 9 10 import com.inversoft.junit.WebTestCase; 11 import com.inversoft.verge.mvc.controller.Action; 12 13 14 21 public class ActionTest extends WebTestCase { 22 23 26 public ActionTest(String name) { 27 super(name); 28 setLocal(true); 29 } 30 31 32 35 public void testAll() { 36 Action action = new Action("foo", request, response); 37 assertSame(request, action.getHttpServletRequest()); 38 assertSame(request.getSession(), action.getHttpSession()); 39 assertSame(response, action.getHttpServletResponse()); 40 assertSame("foo", action.getAction()); 41 assertNotNull(action.getRequestContext()); 42 } 43 } | Popular Tags |