Archives for May 3rd, 2008

A pattern for using EasyMock…

Saturday, May 3rd, 2008

Ralf Stuckert wrote a great article on EasyMock titled "Getting started with EasyMock2."  He clearly defined a pattern for using this library.
The pattern is

Create a mock.

Set up your expectations.

Set the mock to replay mode.

Call your code under test.

Verify that your expectations have been met.

Believe me, knowing this pattern will save you a lot [...]

patterns | No Comments

 

May 2008
M T W T F S S
« Apr   Jun »
 1234
567891011
12131415161718
19202122232425
262728293031  

Categories

Archives

Tags