Testing
-
Enterprise Java

Mockito – Better error messages on NPE with globally configured SmartNull
Writing the Mockito reference card I had an opportunity to take a closer look at the less popular, but very…
Read More » -
Enterprise Java

Spring MVC Integration Tests
An approach to Integration Testing the controllers in Spring MVC is to use the Integration Test support provided by Spring.…
Read More » -
Enterprise Java

EasyMock tutorial – Getting Started
In this post, I’m going to show you what EasyMock is and how you can use it for testing your…
Read More » -
Software Development

Testing legacy code: Hard-wired dependencies
When pairing with some developers, I’ve noticed that one of the reasons they are not unit testing existing code is…
Read More » -
Enterprise Java

Test-driving Builders with Mockito and Hamcrest
A lot of people asked me in the past if I test getters and setters (properties, attributes, etc). They also…
Read More » -
Enterprise Java

NoSQLUnit 0.3.0 Released
Introduction Unit testing is a method by which the smallest testable part of an application is validated. Unit tests must…
Read More » -
Enterprise Java

Moving Beyond Core Hamcrest in JUnit
In the post Improving On assertEquals with JUnit and Hamcrest I introduced use of Hamcrest with JUnit. I then looked…
Read More » -
Enterprise Java

Testing Abstract Classes and Template Method Pattern
From wikipedia “A template method defines the program skeleton of an algorithm. One or more of the algorithm steps can…
Read More » -
Enterprise Java

Java EE 6 Testing Part II – Introduction to Arquillian and ShrinkWrap
In Java EE 6 Testing Part I I briefly introduced the EJB 3.1 Embeddable API using Glassfish embedded container to…
Read More »







