We've expanded our news coverage and improved our search! Visit
oreilly.com for the latest or search for all things across O'Reilly!
Article:
 |
|
Mock Objects in Unit Tests
|
| Subject: |
|
How is mocquer different from "EasyMock Class Extension"? |
| Date: |
|
2005-01-16 05:02:05 |
| From: |
|
Stucki
|
Response to: How is mocquer different from "EasyMock Class Extension"?
|
|
Well, there is a difference:
EasyMock Class Extension (resp. the cglib) has a problem if the constructor of the mocked class calls a method (net.sf.cglib.core.CodeGenerationException: java.lang.NullPointerException-->null).
Mocquer does not seem to have any problems with that.
|