代码改变世界

随笔档案-2012年5月22日

尝试用单元测试做spring注入调用service

2012-05-22 16:43 by javaspring, 1332 阅读, 收藏,
摘要: 尝试用单元测试做spring注入调用servicepublic class GoodsCategoryServiceImplTest extends TestCase{ public ApplicationContext context=null; protected void setUp() throws Exception { String[] files={"appContext-core.xml","appContext-memcached.xml","appContext-mvc.xml"}; context=(Applic 阅读全文