ssh+junit测试

其他随笔
public
class test { @BeforeClass public static void bb(){//必须为静态 System.out.println("class"); } ApplicationContext ctx = new FileSystemXmlApplicationContext("/WebRoot/WEB-INF/applicationContext.xml"); @Test public void findTest(){ userDAO a1do = (userDAO) ctx.getBean("userDAO"); user a1= a1do.Find(40); System.out.println(a1); } }

 

posted @ 2023-12-21 13:54  伪装大牛  阅读(11)  评论(0编辑  收藏  举报