JUnit
-
Core Java
Test Driven Traps, part 2
The Story of a Unit in Unit Tests In the previous part of this article, you could see some bad,…
Read More » -
Enterprise Java
Spring Testing Support and Context caching
Spring provides a comprehensive support for unit and integration testing – through annotations to load up a Spring application context,…
Read More » -
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 »