写了个Servlet的测试用例,初学单元测试. 用的JUnit是4.1版,easymock-3.1。 //简单的servlet程序class HttpServlet { public doGet(HttpServletRequest request, HttpServletResponse response)throws&nbs
Properties properties = .getClassLoader().getResourceAsStream(properties.load(in); "org.postgresql.Driver" String url=properties.getProperty( = DriverManager.
在这里依赖一个类DatabaseMetaData,这个对象可以从数据库连接来获取。有了它万事大吉了,想知道什么问它即可: //获取所有表 ResultSet tableSet = databaseMetaData.getTables(null, "%", "%", ne
public String alarmInfoSending( ) throws InterruptedException { boolean mail = false; String alarmInfo=""; &n
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号