注解测试
2016-01-15 09:49
288 查看
注解测试
配制文件要放到测试的资源文件当中
配制文件要放到测试的资源文件当中
@RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = {"classpath*:spring/data-knet.xml","classpath*:spring/applicationContext.xml"}) public class DatajunitTest extends AbstractJUnit4SpringContextTests{ @Resource private IKnetService knetService; @Test public void aa(){ knetService.test(); } }
相关文章推荐
- http--发送post请求 发帖
- android的Popupwindow根据手势来贴边划出
- jquery特效大全,jquery+css+css3+html+html5的特效制作
- 开发环境eclipse向idea转变记录。
- oracle百万级数据分页优化
- H5下载打开APP页面通用模板
- js 解析xml字符串
- SpringMVC返回json数据的三种方式
- 【Struts2集锦】-界面访问取值赋值
- 漫谈刑事辩护 z
- I meet this issue too
- POP介绍与使用实践(快速上手动画)
- sql server 日期 时间 函数整理
- XML和JSON相互转换类(JAVA)
- 解决VS和opencv中常遇见错误
- linux rename总结
- 另外几种Java集合框架详解续
- Android studio:library module依赖篇
- 一起刑事案件法庭辩护 z
- update from select