随笔分类 -  mockito

摘要:package *.withdraw;import javax.annotation.Resource;import org.junit.Before;import org.junit.Test;import org.junit.runner.RunWith;import org.mockito.I... 阅读全文
posted @ 2015-07-22 14:45 唾手可得的树 阅读(1465) 评论(0) 推荐(0)
摘要:mockServer的具体应用场景http://www.mock-server.com/用于通过HTTP和HTTPS交互的系统 阅读全文
posted @ 2014-10-28 15:30 唾手可得的树 阅读(193) 评论(0) 推荐(0)
摘要:springxml配置构造函数入参有深入的理解集合mockito创建对象的方法。功能等同于创建对象的代码。spring配置文件中定义bean的好处便于集中管理,系统任何地方都可以引用使用。如果不这样做,想象一下,代码中很多地方都直接使用bean类创建对象,如果以后需要修改,会改动很多地方,工作量很大... 阅读全文
posted @ 2014-10-27 10:17 唾手可得的树 阅读(858) 评论(0) 推荐(0)
摘要:mockito学习写一个测试用例,如果在测试类上面添加了注解@RunWith(SpringJUnit4ClassRunner.class),必须添加@ContextConfiguration("/meta/springConfigured.xml")否则执行测试用例会报错:Caused by: ja... 阅读全文
posted @ 2014-10-25 22:17 唾手可得的树 阅读(3927) 评论(1) 推荐(0)
摘要:mockitohttp://mockito.github.io/mockito/docs/current/org/mockito/Mockito.html 阅读全文
posted @ 2014-10-23 15:19 唾手可得的树 阅读(138) 评论(0) 推荐(0)