Display:
Sorted by Most Recent
28 NOV 08
jMock vs. Easymock - syntax comparison | Tomek's blog SAVE
The question is which one makes your tests more readable ? For me the simplicity of test classes is a top priority. I believe that test classes should be VERY easy to understand. And the winner is... EasyMock ! I don't say that EasyMock is superior. I only find it's syntax easier to understand. Because both frameworks allow me to do what I want to do, I'll keep on using this library.
TAGS
05 NOV 08
JUnit and EasyMock | Refcardz SAVE
PEOPLE
JUnit and EasyMock are the predominant choices for testing tools in the Java space. This reference card will guide you through the creation of unit tests with JUnit and EasyMock. It contains detailed definitions for unit testing and mock objects as well as a description of the lifecycle of each. The APIs for both JUnit and EasyMock are covered thoroughly so you can utilize these tools to their fullest extent.
TAGS
21 SEP 08
InfoQ: Mockito 1.5 spies on plain objects SAVE
Mockito is a mocking framework for Java. It's very similar to EasyMock and jMock, but eliminates the need for expectations by verifying what has been called after execution. Other mocking libraries require you to record expectations before execution, which tends to result in ugly setup code
TAGS
24 JUN 08
Unit testing with JUnit and EasyMock - Michael Minella SAVE
PEOPLE
I hope this gives you a more in depth view into JUnit and EasyMock. Unit testing is something that once you get used to it, makes you code better, provides you with a safety net for future refactoring and protects you from being burned by API changes
TAGS
Unit Testing With TestNG and JMockit | Javalobby SAVE
PEOPLE
TestNG is a testing framework for unit test development. JMockit is a framework for mock objects that provides mock object functionality using the java.lang.instrument package of jdk 1.5. Together, these frameworks can provide the tools to create very rob
TAGS
19 MAY 08
Should we discard Interfaces? | Learning by Experience SAVE
PEOPLE
Is a class that only has interfaces as dependencies easier to test then classes that have implementations as dependencies? Most of us are eager to say yes, but in fact, frameworks like EasyMock enable us to mock (non final) classes.
TAGS
25 AUG 07
Mock Objects: Shortcomings and Use Cases SAVE
PEOPLE
This article looks at Mock Objects, a testing technique from the XP community that offers a way to test our code in isolation by simulating those external dependencies. As with any other tool, we need to be careful and avoid overusing them.
TAGS
15 FEB 07
Mock Objects: the Good, the Bad and the Ugly SAVE
PEOPLE
I have mixed feelings about mocks. I can say I'm 97% classicist and 3% mockist. I tend to avoid them as much as possible for the following reasons: