JUnit测试servlet - 豆丁网
并加入classpath 了可以直接用eclipse 的junit ,可用...import java.io.FileNotFoundException; import java...testValidUser() LoginEdgeloginServlet newLoginEdge...
使用JUnit测试预期异常 - ImportNew
2014年3月8日 - 开发人员常常使用单元测试来验证的一段儿代码的操作,很多时候单元测试可以检查抛出预期异常(expected exceptions)的代码。在Java语言中,JUnit是一套标...