Using Mock Objects with EasyMock and Mocquer have an interesting article about using Easy Mock and Mocquer for using Mock Objects for Unit Testing.

Mock Objects are incredibly useful for Unit Testing in order to test a slice of your application in isolation from the rest of the application. Mock Objects behave as a facade to the rest of your real application but with stubbed out logic (or alternative logic for testing), so you can test an individual piece of code in isolation from other code.

EasyMock is a framework that automatically generates mock object proxies for you from interfaces (so you don’t have to write the mock object yourself by hand), and Mocquer takes this a step further and facilitates the generation against regular classes.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.