Skip to main content

Blog Archive for johnsmart during September 2009

Just a reminder about the Java Power Tools Bootcamp sessions coming up in Sydney and Wellington. The Sydney session is planned for October 19-23, and the Wellington one is scheduled for November 16-20. These workshops are a great way to give your Java development practices a boost and introduce some kick-ass tools, techniques and tricks into your daily development routine. They are a...
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 afterwards, whether the test passes or fails. This comes in very handy for tests involving file manipulation of any sort. Of course you can write this code yourself (and most of us have!), but any infrastructure coding in tests is tiresome at best...
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 succeed if and only if a certain exception is thrown. For example, in the following code sample, we are testing a UserManager class. When the login() function is called, it should throw an UnknownUserException when no user is found. Our UserDao...
Wakaleo Consulting is pleased to announce a new training course focusing on Agile Testing Practices for Java developers. Indeed, whether you are applying Agile methodologies or not, high quality unit and integration testing is an essential key to high-quality software. During this very practical 2-day workshop, and students spend two very full days writing a real Java application using Test-...
I just wanted to announce some new features that have just gone live on the website. In particular, there is now a brand-new blog section on the Wakaleo website: http://www.wakaleo.com/blog. All my blog entries will still be posted to Java.net. But I wanted to make it easier for people to access material that I'd written. I wanted people to be able to get a glimpse of many blog entries at a...
While I am in Sydney for the next Sydney Java Power Tools Bootcamp, I will be running a Java Coding Dojo, to be held in the Atlassian offices between 5:30 and 7:00pm on the 21st of October. This is a free event, open to anyone who want to do a little recreational coding. I will also be running the inaugural session of the  Wellington Java Coding Dojo on October 14, at a to-be-announced...
Last week I had the pleasure of being invited to talk at the Canberra Java Users Group about BDD using Easyb and JDave, using the talk that Lasse Koskela and I gave at Agile2009: Behaviour-Driven Development, or BDD, is an excellent development strategy that can help bridge the traditional gap between requirements and implementation. This talk will go discuss the basic principles of...
Java Power Tools Bootcamp sessions are coming up fast in Sydney and Wellington - come see what the buzz is about! For those in Europe, sessions are scheduled for Paris and London and in February next year. The Java Power Tools bootcamps provide a great way to give your Java development a boost and introduce some kick-ass tools, techniques and tricks into your daily development routine. This...
A new Java Power Tools Newsletter is out! In this issue, we study the theory and practice of Mock Objects, including the subtle differences between mocks and stubs, and a simple case study using Mockito, the new kid on the block of Mock Objects frameworks for Java. Check it out!
I am absolutely thrilled to anounce that I will be talking at the Canberra JUG meeting next week (on Wednesday, September 9, to be exact), about BDD in general, and Easyb and JDave in particular: Behaviour-Driven Development, or BDD, is an excellent development strategy that can help bridge the traditional gap between requirements and implementation. This talk will go discuss the basic...