Registry / testing / jmock-cglib

jmock-cglib

JSON →
library1.0.1javamavenunverified

Extension for JMock that uses CGLIB to create mock objects for classes without interfaces.

<dependency> <groupId>jmock</groupId> <artifactId>jmock-cglib</artifactId> <version>1.0.1</version> </dependency>
INSTALL
IMPORT
SIG · JMOCK-CGLIB
J
jmock-cglib
testingjavav1.0.1
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.

MockObjectTestCase
org.jmock.cglib.MockObjectTestCase

Minimal JMock CGLIB test case

import org.jmock.cglib.MockObjectTestCase; public class Example extends MockObjectTestCase { public void testSomething() { // mock creation } }
Debug
Known issues
gotchaCGLIB-based mocking may have compatibility issues with newer Java versions.
fix
Consider using JMock with ByteBuddy or Mockito for modern Java.
affects: >=1.0.1
Upgrade
Version history
1.0.1latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
jmock-cglib — mvn dependency:get jmock-cglib · libregistry