Using Mockito to Unit Test Java Applications

If you’ve spent any time writing unit tests then you’ll know that it’s not always straight-forward. Certain things are inherently hard to test. In this post I’ll show you the basic principles of creating mock objects with a little help from the Mockito mocking tool.
One common problem faced when unit testing is how to test [...]

Configuring MySQL on Mac OS X

I found the documentation for MySQL a little rough around the edges recently when I needed to change a configuration setting for it – everything seemed spread around their comprehensive PDF documentation and it took me a little while to fathom my way through it.
It’s not often that changes to MySQL configuration need to [...]

Ignoring Files and Directories in a Subversion Project

Configuring Subversion to ignore files can sometimes cause confusion. Like most things though, if you understand the basic principles, then its not tricky at all. In this post I’ll demonstrate just how you should go about ignoring files in a subversion project.

A Unix Command to Recursively Delete all .svn Folders

I recently needed to check out a project from Subversion and then delete all of the .svn files from the project directories. Google found me a few different ways to do this, but none of them seemed to deal with a case where some of the directory and file names had spaces or quotes in them – as mine did. After a little experimenting, I figured out how some simple Unix commands that could be combined using pipes to do this.

Branching and Merging with Subversion (SVN)

Working in the head revision of a versioning system isn’t a great idea. It’s much better to work in a branch and to merge the changes once you’re convinced they are stable. This post demonstrates how to do this with Subversion.

Using the JForum SSO plug-in from Grails

How to apply Single Sign On (SSO) to JForum from within a Grails application.

Secure single sign on (SSO) for JForum

I recently developed a web application that used the excellent open source project JForum for its forum pages. The one thing that was missing from JForum though was a secure SSO module. In this article I’ll explain why the SSO solution bundled with JForum was not secure enough for our purposes and I’ll show you how [...]

InteliJ IDEA is now open source!

IntelliJ have open sourced IDEA. What does this mean to the Java and Groovy/Grails communities?

Packaging JavaME Applications with the Antic Ant task

This article illustrates just how simple it is to correctly package a Java ME Midlet using Smartkey’s freely available Antic Ant task.
Packaging Midlets
Packaging Midlets can be a complex process. Firstly, there are requirements for two files to be created: a Jar and a Jad file. The Jar file will contain all of the classes and [...]