JUnit
-
Enterprise Java
More on Creating Stubs for Legacy Code – Testing Techniques 7
In my last blog, I talked about dealing with the badly behaved untestable(1) SitePropertiesManager class and how to create stubs by…
Read More » -
Enterprise Java
Creating Stubs for Legacy Code – Testing Techniques 6
Any one who reads this blog will probably have realised that at present I’m working on a project that contains…
Read More » -
Enterprise Java
Unit Testing Using Mocks – Testing Techniques 5
My last blog was the fourth in a series of blogs on approaches to testing code, demonstrating how to create…
Read More » -
Software Development
When to replace Unit Tests with Integration Test
Its been a while I was thinking about integration vs unit testing. Lots of googling, questions in stack overflow and…
Read More » -
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 »