我在JBuilder下自动生成了一个TestCase,具体的代码如下:public void testDoGet() throws ServletException, IOException {
HttpServletRequest request = null;
HttpServletResponse response = null;
simpleServlet.doGet(request, response);
/**@todo fill in the test code*/
}但具体怎么写就不知道了,而且运行这个测试还会报错。所以希望使用过Cactus的朋友们能给予指点。
HttpServletRequest request = null;
HttpServletResponse response = null;
simpleServlet.doGet(request, response);
/**@todo fill in the test code*/
}但具体怎么写就不知道了,而且运行这个测试还会报错。所以希望使用过Cactus的朋友们能给予指点。
import javax.servlet.*;
import java.io.*;
import javax.servlet.http.*;public class TestSimpleServlet extends ServletTestCase { .....}
我给你发邮件已经好多天了,你怎么没信了?
非常不好意思,我没注意把你的邮件给删了,麻烦你再给我发一遍好吗?谢谢!