EasyMock

Arthur Zagretdinov edited this page Jun 15, 2017 · 5 revisions

Using PowerMock with EasyMock

http://www.easymock.org/

EasyMock provides MockObjects for interfaces by generating them on the fly using Java's Dynamic Proxy mechanism.

Extension

PowerMock extends EasyMock with static mocking and setting expectations on constructors.

Supported versions

EasyMock PowerMock
3.4 1.6.3+
3.3 Supported in 1.6.0 if you depend on cglib-nodep 2.2.2
3.0 - 3.2 1.3.9 - 1.6.0
2.5.x 1.3.7 & 1.3.8
2.4.x or older 1.3.6

Maven Configuration

JUnit

TestNG

Usage