ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.


AddThis Social Bookmark Button
  Mock Objects in Unit Tests
Subject:   How is mocquer different from "EasyMock Class Extension"?
Date:   2005-01-13 19:31:13
From:   lujian213
Response to: How is mocquer different from "EasyMock Class Extension"?

Yes, the intent is almost the same. They both intent to mock java class.

EasyMock Class Extention does this based on CGLIB project which can create proxy for both class and interface at runtime.

Mocquer is a sub project of Dunamis project. It is a specific application to demonstrate the usage of Dunamis which can create dynamic delegation for both class and interfaces.

I can't tell which one is better now. I think the difference is two different implementations for the same goal.

1 to 1 of 1
1 to 1 of 1