Test Coverage for a Void Method

I ran across some state code that had plugs in it that were operations an action listener would look for.  The code methods didn’t have anything in them, but needed to be there.  I wanted some simple unit testing coverage on them.  Here’s a small technique to cover a void method that doesn’t do too much. Here’s […]

JOptionPane Popping Up During Unit Tests

This story is the story of good old fashioned decoupling, and an example of Java’s Bridge and Adapter patterns. My client has had a piece of code that for years, yes years, was popping up a java Swing JOptionPane message dialog during unit tests runs in Eclipse (via a Maven plugin) and Eclipse’s JUnit runner. […]