
Downloads
EasyMock
EasyMock Class Extension
This extension allows generating
Mock Objects for classes. It has been contributed by Joel Shellman, Henri Tremblay and Chad Woolley.
Henri Tremblay maintains this extension.
News in EasyMock 2.3
- French documentation
- Matchers for Comparable parameters
- Decimal comparison fix
- Mock Objects can now be named
- Include Bill Michell's ThreadLocal fix
- Converted EasyMock's unit tests to JUnit 4
News in EasyMock 2.2
- answers for expected calls can now be created at call time via
andAnswer(IAnswer answer) and andStubAnswer(IAnswer answer)
callback(Runnable runnable) has been removed, for callbacks, please
switch to
andAnswer(IAnswer answer) and andStubAnswer(IAnswer answer)
replay(), verify() and reset() now accept
multiple mock objects as arguments
News in EasyMock 2.1
- arguments passed to the mock object are now available in callbacks via
EasyMock.getCurrentArguments()
- fixed bug reported in http://groups.yahoo.com/group/easymock/message/558
- earlier failing if unused matchers were specified
News in EasyMock 2.0
- support for flexible, refactoring-safe per-argument matchers
- mock control is hidden for single Mock Objects
- stub behavior replaces default behavior
- support for call order checking for more than one mock, and to switch order checking on and off
- support for callbacks
- EasyMock now throws
java.lang.AssertionError instead of junit.framework.AssertionFailedError so that it is now independent from the testing framework, you may use it with JUnit 3.8.x, JUnit 4 and TestNG
- old API is deprecated
News in EasyMock 1.2
- EasyMock is released in two versions: One for Java 1.3
and above, and one for Java 1.5 with VarArgs support and better type safety.
- order of arguments for ArgumentsMatcher is like in EasyMock 1.0 now
- stack traces are now only cut if the exception is thrown from EasyMock
- convenience methods
expectAndDefaultReturn()
and expectAndDefaultThrow() allow setting default
return values and throwables in one line of code
hashCode() implementation is changed for
better performance
- added Clover coverage reports