JUnit
-
Enterprise Java
Regular Unit Tests and Stubs – Testing Techniques 4
My last blog was the third in a series of blogs on approaches to testing code and discussing what you…
Read More » -
Enterprise Java
What Should you Unit Test? – Testing Techniques 3
I was in the office yesterday, talking about testing to one of my colleagues who was a little unconvinced by…
Read More » -
Enterprise Java
The Misuse of End To End Tests – Testing Techniques 2
My last blog was the first in a series of blogs on approaches to testing code, outlining a simple scenario…
Read More » -
Enterprise Java
Testing Techniques – Not Writing Tests
There’s not much doubt about it, the way you test your code is a contentious issue. Different test techniques find…
Read More » -
Core Java
Mock Static Methods with PowerMock
In a recent blog, I tried to highlight the benefits of using dependency injection and expressing the idea that one…
Read More » -
Enterprise Java
Java RESTful API integration testing
This post will focus on basic principles and mechanics of writing Java integration tests for a RESTful API (with a…
Read More » -
Enterprise Java
Spring 3 Testing with JUnit 4 – ContextConfiguration and AbstractTransactionalJUnit4SpringContextTests
Looking in the internet for a way to test my Spring 3 application, I found many articles that describe how…
Read More » -
Enterprise Java
Code coverage with unit & integration tests
On a pet project recently I set out to build automated UI (integration) tests as well as the normal unit…
Read More » -
Core Java
Testing an Object’s Internal State with PowerMock
Most unit testing focuses on testing an object’s behaviour in order to prove that it works. This is achieved by…
Read More »