1 package servletunit.struts.tests.cactus; 2 3 import servletunit.struts.CactusStrutsTestCase; 4 5 import java.util.Map ; 6 7 14 public class TestClearParameters extends CactusStrutsTestCase { 15 16 public TestClearParameters(String testName) { 17 super(testName); 18 } 19 20 public void testClearParameters() { 21 addRequestParameter("foo","bar"); 22 addRequestParameter("hi", "there"); 23 assertEquals("bar",getRequest().getParameter("foo")); 24 assertEquals("there",getRequest().getParameter("hi")); 25 clearRequestParameters(); 26 assertNull(getRequest().getParameter("foo")); 27 assertNull(getRequest().getParameter("hi")); 28 } 29 30 31 } 32 | Popular Tags |