Home arrow Blog

Michael's blog is now available on the Click here to order on Amazon.com

New Tutorial on EasyMock’s MockControls

Most people who have used EasyMock before are familiar with the types of mock objects. There is the basic mock object, created with EasyMock.createMock(MyInterface.class);. There is the strict mock that validates both the method calls and the order they occur. Finally there is the nice mock which returns a basic default (false, 0 or null) if an unexpected method call occurs. However, most developers I have come across don’t use mock controls much. Today we change that! My new tutorial will introduce you to the concepts of mock controls and show you an example of where your unit testing without them may not be as safe as you think. You can check out the new tutorial here: http://www.michaelminella.com/testing/mock-controls-with-easymock.html

No Comments

Add your own comment...

Tweets

    Twitter Button from twitbuttons.com