Testing
-
Software Development
Why shouldn’t I test private methods?
Newcomers to TDD ask some interesting questions, here’s one I was asked recently: testing private methods is bad, but why? How…
Read More » -
Enterprise Java
Fast Remote Service Tests
Testing code that interacts with remote services is often pretty hard. There are a lot of tradeoffs that influence what…
Read More » -
Core Java
Getting started with Mocking in Java using Mockito
We all write unit tests but the challenge we face at times is that the unit under test might be…
Read More » -
Software Development
Write effective Unit tests
Soon or later we all experienced the comfortable feeling of test green lights, assuring a non regression after a change…
Read More » -
Software Development
Manual testing sinful?
One of the asides I made in “Programmers without TDD will be unemployable” which caused a bit of outrage in…
Read More » -
Core Java
Using Reflection for Testing
I am working on a presentation about the ‘Single Responsibility Principle’, based on my previous post. It take most of…
Read More » -
Core Java
Testing for expected exceptions in JUnit
Unit tests are used to verify that a piece of code operates as the developer expects it to. Sometimes, that…
Read More » -
Core Java
Mock final class
Foreword If you already read some other blog post about unusual mocking, you can skip prelude via this link. I…
Read More » -
Enterprise Java
Use Mockito to mock autowired fields
Dependency injection is very powerful feature of Inversion of Control containers like Spring and EJB. It is always good idea…
Read More »