JUnit
-
Core Java

Using PowerMock to Mock Constructors
In my opinion, one of the main benefits of dependency injection is that you can inject mock and/or stub objects…
Read More » -
Enterprise Java

5 Tips for Unit Testing Threaded Code
Here’s a few tips on how take make testing your code for logical correctness (as opposed to multi-threaded correctness). I…
Read More » -
Enterprise Java

Tips for testing with Java
Introduction I love automated testing. In a rare diversion into op-ed1 I thought a put few thoughts (read – opinions)…
Read More » -
Enterprise Java

Spring Integration – Session 2 – More Hello Worlds
This is a follow up to Spring Integration Session 1 The first session was a simple Hello World application using…
Read More » -
Enterprise Java

JUnit, Logback, Maven with Spring 3
In this series we have already learnt to set up a basic Spring MVC application and learnt how to handle…
Read More » -
Enterprise Java

Categorize tests to reduce build time
Before we progress with the main content of the article, let’s get a few definitions out of the way. Unit…
Read More » -
Enterprise Java

Tomcat Context JUnit @Rule
A first draft of a JUnit @Rule that create the test context. This can be used with the Spring context…
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

JUnit’s Built-in Hamcrest Core Matcher Support
In the post Improving On assertEquals with JUnit and Hamcrest, I briefly discussed Hamcrest “core” matchers being “baked in” with…
Read More »





