阅读背景:

spring整合junit集成测试

来源:互联网 

之前测试代码:

@Test
	public void testAddOld() {
		ApplicationContext appContext = new ClassPathXmlApplicationContext("application.xml");
		appContext.getBean("testTbService");
		TestTb testTb = new TestTb();
		testTb.setName("小虫");
		testTb.setBirthday(new Date());

		testTbService.addTestTb(testTb);
	}

@Test
	public void testAddOld() {
		Appli




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: