About Roger Hughes
List/Grid Author Archives Subscribe to the RSS feed of Roger Hughes

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 favour with different developers for varying reasons including corporate ...

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 of the main benefits of this technique is that it allows you to test ...

Everybody Knows About MVC…
From a recent blog, you may have gathered that I’ve recently been conducting some interviews and as they were for web application developers a question I asked was “can you explain ...

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 writing a JUnit test that calls an object’s public methods and then ...

Spring MVC Interceptors Example
I thought that it was time to take a look at Spring’s MVC interceptor mechanism, which has been around for a good number of years and is a really useful tool. A Spring Interceptor ...

Open Source Java Libraries and Frameworks – Benefits and Dangers
Everyone in the Java world seems to use various open source libraries and frameworks… and why not, there are hundreds available covering virtually every type of programming problem ...

When Inheriting a Codebase, there are more questions than answers…
There will be that time in your life when you inherit someone else’s source tree or codebase and you’ll need to think of a plan to deal with this situation. Now, there are codebases ...

The Ten Minute Build
Given a development environment any developer should be able to get hold of the source code, click a button or type a simple command and run a build. The build should compile and perform ...



