## EasyMock Class Extension 3.0 Readme

Documentation for release 3.0 (2010-05-08)
© 2003-2010 OFFIS, Henri Tremblay.

The EasyMock Class Extension allows to generate Mock Objects for classes.

EasyMock Class Extension is now considered deprecated.

Class mocking can now and should be done directly using standard EasyMock. Documentation about class mocking is now integrated to EasyMock documentation.

## Requirements

The EasyMock Class Extension requires Java 5 or above, EasyMock 3.0.

## Usage

When moving to EasyMock and EasyMock CE 3.0, your projects should still work as before (despite deprecation warnings). However, they will need to be recompiled first.

### Migration

Moving from EasyMock CE to EasyMock 3.0 is straightforward. You need to remove the dependency to EasyMock CE and replace all imports to

    org.easymock.classextension.*

by imports to

    org.easymock.*

which basically means to remove `.classextension` from everywhere in your code.

## Development

### Authors

The EasyMock Class Extension is currently maintained by Henri Tremblay.

It was initially developed by Joel Shellman, Chad Woolley and Henri Tremblay on the files section of Yahoo!Groups.

Thanks to the people who gave feedback or provided patches, including Rodrigo Damazio, Bruno Fonseca, Ben Hutchison and numerous others.

### Release Notes

New in version 3.0:

- Merge class extension in standard EasyMock
- Deprecate the class extension

New in version 2.5.2:

- EasyMockSupport for class extension

New in version 2.5.1:

- Change license from MIT to Apache 2.0

New in version 2.5:

- Incorrectly wrapped exception returned when EasyMock methods receive a parameter that is not a mock
- Stub exception causes NPE (2407137)
- Move to Subversion
- Build entirely with Maven
- Objenesis not embedded anymore
- Add OSGi header to manifest (2774873)
- New IMockBuilder interface to easily perform partial mocking (2822905, 2788098, 2783949)
- Class mocks are now serializable (1963458)

New in version 2.4:

- Add resetToNice/Default/Strict methods (1963442)
- Can make a mock thread-safe (1895644,1953275)
- Fix on bridges calling super (thanks to Barry Kaplan)
- Copyrights updated to 2008

New in version 2.3:

- French documentation
- Be able to call constructor for partial mocking
- Mock Objects can now be named
- Switch to varargs the "mockedMethods" parameter for partial mocking
- Version in jar manifest
- Objenesis 1.1 for Aonix partial support
- Samples updated to JUnit 4
- Update to JUnit 4.4
- Maven pom more complete
- Abstract methods are mocked by default for partial mocks

New in version 2.2.2:

- Use cglib cache. Greatly improve performance and reduce used perm space
- Class instantiation using objenesis for more portability
- Update to JUnit 4.3.1
- Possibility to use your own instantiator

New in version 2.2.1:

- Varargs for record(), replay() and reset()

New in version 2.1:

- Tests migrated to JUnit 4

New in version 2.0:

- New implementation compatible with EasyMock 2