Posts Tagged ‘Tests’

Links of the Week

Here are some interesting links of this week :

Three Monitors for Every User : Jeff Atwood explain how to works with three monitors on the same computers and what that give to the user.
Tip: When you can’t throw an exception : Elliotte Rusty Harold explore solutions on how to works with exceptions in public APIs
How to Write a Memory Leak Unit Test : Tor …

Mock objects with EasyMock

1. Introduction
The mock objects allows to make unit tests on objects depending on other objects. We will replace this dependencies with mock objects. With that, we can by example verify than the method xyzzy() has been called 5 times and returned 33. That can be practical in a several cases. By exampe, if the object to mock is slow or undeterministic (depending on time, …