2013年12月15日
摘要: Spring学习笔记(三)续Spring 学习笔记(二)之后,对Spring框架的annotation实现方法进行整理本文目录@Autowire1 @Autowire+@Qualifier tips2 myeclipse content小技巧@Resource1@Resource(name,type)2与@Autowire的区别 按名字和按类型@Component1@Resource+@Component2@Resource(NAME)+@Component(NAME)@scope@PostConstruct and @PreDestroyannotation实现的Spring XML配置1 阅读全文
posted @ 2013-12-15 18:03 sunfan 阅读(741) 评论(0) 推荐(0) 编辑
摘要: Junit 介绍:Junit是一套框架(用于JAVA语言),由 Erich Gamma 和 Kent Beck 编写的一个回归测试框架(regression testing framework),即用于白盒测试。本文介绍的内容:1 Junit Myeclipse测试类的生成2JUnit 4 常用的几个annotation 介绍与使用 (@Before @After @Test @Ignore @BeforeClass @AfterClass)3常用的断言介绍4 特殊的处理(限时测试,异常测试)5 参数化配置(@Parameters)准备测试代码测试的方法(正确、错误方法、死循环、抛异常)Log 阅读全文
posted @ 2013-12-15 16:42 sunfan 阅读(8473) 评论(0) 推荐(1) 编辑