Registry / testing / easymockclassextension

easymockclassextension

JSON →
library2.5.2javamavenunverified

EasyMock Class Extension allows generating mock objects for classes (not just interfaces).

<dependency> <groupId>org.easymock</groupId> <artifactId>easymockclassextension</artifactId> <version>2.5.2</version> </dependency>
INSTALL
IMPORT
SIG · EASYMOCKCLASSEXTEN
E
easymockclassextension
testingjavav2.5.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

EasyMock
org.easymock.EasyMock

Creates a mock of a class, sets an expectation, replays, and verifies.

import org.easymock.EasyMock; import static org.easymock.EasyMock.*; MyClass mock = createMock(MyClass.class); expect(mock.getValue()).andReturn(42); replay(mock); System.out.println(mock.getValue()); verify(mock);
Debug
Known issues
breakingEasyMock Class Extension is deprecated in favor of EasyMock 3.0+ which supports mocking classes natively.
fix
Use org.easymock:easymock version 3.0 or later instead.
affects: <=2.5.2
Upgrade
Version history
2.5.2latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
12
Resources
easymockclassextension — mvn dependency:get easymockclassextension · libregistry