2 import junit
.framework
.Test
;
3 import junit
.framework
.TestSuite
;
5 //import org.apache.cactus.ServletTestCase;
6 //import org.apache.cactus.WebRequest;
8 public class TestSampleServlet
//extends ServletTestCase
10 public TestSampleServlet(String theName
)
15 public static Test
suite()
17 return new TestSuite(TestSampleServlet
.class);
20 /*public void beginSaveToSessionOK(WebRequest webRequest)
22 webRequest.addParameter("testparam", "it works!");
25 public void testSaveToSessionOK()
27 SampleServlet servlet = new SampleServlet();
28 servlet.saveToSession(request);
29 assertEquals("it works!", session.getAttribute("testAttribute"));