While browsing through open-source project sonar’s test-code I noticed that they had package imports with Mockito namespace. What I noticed was that the mocking test-code looked similar to easymock but less cluttered and better readable. So I gave Mockito (version was 1.8.3 back then) a try when implementing new test-cases and did not regret it [...]
Entries Tagged as 'Continous Integration'
>June 27th, 2010 · No Comments
From Java Easymock to Mockito
Tags: Continous Integration · Software Engineering · Technologies/Tools
>April 19th, 2009 · No Comments
Parameterized test-methods with TestNG
TestNG offers many great features and is definitely more capable as JUnit to build a strong automated Test-Suite. When writing test-cases one important factor is the handling of test-data. With JUnit it is cumbersome to feed different test-data to the same test-code. TestNG solves this much better.
Let’s look at a very simple example. When [...]
Tags: Continous Integration · Software Engineering
>June 16th, 2008 · No Comments
Avoiding xUnit test-errors (false positives, false negatives)
You are using unit-tests to ensure that production code works as defined or specified from the class-level view. This way you either get feedback that your implementation works as wanted (green-bar=success) or not (red-bar=fail). Unfortunately tests are also man-crafted work and can contain bugs. Following article shows what kind of test-errors exist and what [...]

