easymock.org
域名年龄: 23年3个月3天HTTP/1.1 200 OK 服务器:GitHub.com 访问时间:2014年10月13日 11:54:45 类型:text/html; charset=utf-8 修改日期:2014年09月10日 10:40:38 Transfer-Encoding: chunked 过期时间:2014年10月13日 12:04:45 缓存控制:max-age=600 动作:Accept-Encoding Content-Encoding: gzip 网站编码:utf-8
Fork me on GitHub Toggle navigation EasyMock Getting started Documentation User guide Javadoc Other resources Project Source code Release notes Issue tracker Mailing list Contributors License News Easy mocking. Better testing. Getting started Download (v3.2) Why Great testing includes isolation Most parts of a software system do not work in isolation, but collaborate with other parts to get their job done. In a lot of cases, we do not care about using real collaborators implementation in unit testing, as we trust these collaborators. Mock Objects replace collaborators of the unit under test. How Isolation involves Mock Objects To test a unit in isolation or mount a sufficient environment, we have to simulate the collaborators in the test. A Mock Object is a test-oriented replacement for a collaborator. It is configured to simulate the object that it replaces in a simple way. In contrast to a stub, a Mock Object also verifies whether it is used as expected. What EasyMock makes mocking easier EasyMock has been the first dynamic Mock Object generator, relieving users of hand-writing Mock Objects, or generating code for them. EasyMock provides Mock Objects by generating them on the fly using Java's proxy mechanism. If the thought of writing all the mock object classes you might need is intimidating, look at EasyMock, a convenient Java API for creating mock objects dynamically. Dave Thomas an Andy Hunt, The Pragmatic Programmers, in IEEE Software May/June 2002 We were about to implement our own Mocking based on reflect.Proxy, but seems like you saved us lot of trouble. Oren Gross, Mercury Interactive EasyMock can save a lot of legwork and make unit tests a lot faster to write. builder.com Java E-Newsletter for October 21, 2002 We just started to use EasyMock in an XP project and found that it eases writing our TestCases considerably. Moreover, it encourages us to make more frequent use of MockObjects leading to compositional and interface oriented designs. Not only is it well crafted and easy to use. It also enhances communication in the TestCase for it exposes the expected calls on the MockObject right where you need it. Dierk Koenig, Canoo AG I have been using EasyMock to unit test some web-based classes without requiring the presence of the app server and I am very impressed. It is extremely easy to use and makes writing the unit tests a breeze - great job! Robert Leftwich © 2001-2014 EasyMock contributors
© 2010 - 2020 网站综合信息查询 同IP网站查询 相关类似网站查询 网站备案查询网站地图 最新查询 最近更新 优秀网站 热门网站 全部网站 同IP查询 备案查询
2024-09-24 19:19, Process in 0.0097 second.