Another handy feature in JUnit 4.7 is the TemporaryFolder @Rule. Using this rule, JUnit will create a temporary folder before your test, and delete it...
0 replies - 1830 views - 09/30/09 by John Ferguson Smart in Blogs
JUnit 4.7 introduced a few features that make it a little easier to work with exceptions. JUnit 4 introduced the expected parameter, which makes a test...
0 replies - 2162 views - 09/29/09 by John Ferguson Smart in Blogs
In the first part of this article, we looked at the basics of how to use enums in Java 5. In this part, we look at some more advanced use cases, including how...
6 replies - 20063 views - 05/19/08 by John Ferguson Smart in Blogs
In his JavaOne talk this year, Josh Bloch gave some very useful tips about using enums in Java. Here is my take on enums, and how to use them to represent...
2 replies - 3778 views - 05/14/08 by John Ferguson Smart in Blogs
With JavaOne coming up next week, I thought this little tribute might be approriate.
The Coder
To the tune of 'The Gambler', by Kenny Rogers
2 replies - 1687 views - 05/02/08 by John Ferguson Smart in Blogs
I've been using SpringIDE for my Spring applications for a while now, and it is a very nice tool. It makes visualising your Spring configuration files,...
1 replies - 3021 views - 04/08/08 by John Ferguson Smart in Blogs
The much-awaited Java Power Tools will be out soon, really! It's now looking like the book will be on the shelfs in the second half of April. If you're in a...
0 replies - 2711 views - 04/05/08 by John Ferguson Smart in Blogs
Hamcrest is a great little library for making your unit tests more concise and more readable, but sometimes there are a few surprises...
1 replies - 1659 views - 04/01/08 by John Ferguson Smart in Blogs
Creating a new Maven project in EclipseA new and greatly improved version of the Maven 2 Eclipse plugin has just come out. In a series of short articles, I'll...
8 replies - 6859 views - 03/19/08 by John Ferguson Smart in Blogs
Just for a bit of fun - Roy Osherove sings about Continuous Integration and Agile Development in "Every Build You Break".
0 replies - 2732 views - 03/13/08 by John Ferguson Smart in Blogs
Paul Duvall, from Stelligent, has been experimenting with using voice commands to control a build server. A neat idea!
2 replies - 2955 views - 03/11/08 by John Ferguson Smart in Blogs
So your CI server now automatically deploys your application to an integration server. You've even configured it so that you can manually deploy to the QA...
0 replies - 6661 views - 03/09/08 by John Ferguson Smart in Blogs
The Java Power Tools book finally has a cover!
0 replies - 1094 views - 03/09/08 by John Ferguson Smart in Blogs
That great book on Continuous Integration theory and practice, Continuous Integration: Improving Software Quality and Reducing Risk by Paul Duvall, Steve...
0 replies - 2729 views - 03/09/08 by John Ferguson Smart in Blogs
So you've got hundreds of tests, but they take ages to run. You have a Continuous Integration server, but it takes an hour to tell anyone when there's a...
0 replies - 3532 views - 03/03/08 by John Ferguson Smart in Blogs