Testing
-
Enterprise Java

Hamcrest Matchers, Guava Predicate and Builder design pattern
Often, while coding we have to deal with some POJO objects that have dozens of fields in them. Many times…
Read More » -
Enterprise Java

Running JUnit Tests Repeatedly Without Loops
Recently I came across a problem where I had to write tests for a method that calculates randomly distributed values…
Read More » -
Software Development

Penetration Testing Shouldn’t be a Waste of Time
In a recent post on “Debunking Myths: Penetration Testing is a Waste of Time”, Rohit Sethi looks at some of…
Read More » -
Enterprise Java

JUnit: Naming Individual Test Cases in a Parameterized Test
A couple of years ago I wrote about JUnit Parameterized Tests. One of the things I didn’t like about them…
Read More » -
Software Development

War Games, Pair Testing and Other Fun Ways to Find Bugs
I’ve already examined how important good testing is to the health of a project, a product and an organization. There’s…
Read More » -
Enterprise Java

Testing Spring Data Neo4j Applications with NoSQLUnit
Spring Data Neo4j is the project within Spring Data project which provides an extension to the Spring programming model for…
Read More » -
Enterprise Java

JUnit and EasyMock cooperation
Developers always need to take care about code which they produced. They should be ensured that code works properly after…
Read More » -
Core Java

Testing Expected Exceptions with JUnit Rules
This post shows how to test for expected exceptions using JUnit. Let’s start with the following class that we wish…
Read More » -
Enterprise Java

Don’t rely on unit tests alone
When you are building a complex system, barely testing components in isolation is not enough. It’s crucial, but not enough.…
Read More »





