Skip to main content

John Ferguson Smart

John is a freelance consultant specialising in Enterprise Java, Web Development, and Open Source technologies, currently based in Wellington, New Zealand. Well known in the Java community for his many published articles, John helps organisations to optimize their Java development processes and infrastructures and provides training and mentoring in open source technologies, SDLC tools, and agile development processes. John is principal consultant at Wakaleo Consulting, a company that provides consulting, training and mentoring services in Enterprise Java and Agile Development.

 

johnsmart's blog

Data-driven tests with JUnit 4 and Excel

Posted by johnsmart on November 28, 2009 at 11:43 PM PST

One nice feature in JUnit 4 is that of Parameterized Tests, which let you do data-driven testing in JUnit with a minimum of fuss. It's easy enough, and very useful, to set up basic data-driven tests by defining your test data directly in your Java class. But what if you want to get your test data from somewhere else?

Test-Driven Development with Legacy code - an introduction

Posted by johnsmart on November 22, 2009 at 11:27 AM PST

Test-Driven Development, or TDD, is often quoted as an essential Agile best practice, and so it is. It works wonders on green-fields projects and new code bases where you can start afresh and ensure that all your code is both easily testable and well tested. But what about legacy code?

See you in Auckland, Melbourne and Syndey for the next TDD workshops

Posted by johnsmart on November 5, 2009 at 5:29 PM PST

I'm very excited about the upcoming Testing and Test-Driven Development for Java Developers 2-day workshop, coming soon to Auckland, Melbourne, and Sydney.

More Groovy Magic with Maven pom files

Posted by johnsmart on November 1, 2009 at 6:39 PM PST

Last time, I introduced some of the new Groovy support available in Maven 3, and looked at how you will be able to write your pom files in Groovy, or in other non-XML notations.

The three circles of developer web testing

Posted by johnsmart on November 1, 2009 at 5:21 PM PST

In this edition of the Java Power Tools Newsletter, we will be looking at strategies and tools for developer web testing.

Retrospectives on the first Wellington Coding Dojo

Posted by johnsmart on October 30, 2009 at 12:06 AM PDT

Earlier on this week, we held the first ever Wellington Coding Dojo session, co-organized with the Wellington Java Users Group. It was a great session.

Writing your pom files in Groovy - a sneek preview of Maven 3's polyglot features

Posted by johnsmart on October 21, 2009 at 11:04 AM PDT

Maven 3 is promising to be the most significant upgrade since the release of Maven 2. While maintaining backward compatibility with existing Maven 2 projects, it introduces a number of powerful and compelling new features, such as a complete rewrite of the internal architecture, OSGi support and multi-language pom files. In this article, I will be giving a preview of this last feature.

5 Rules to writing portable build scripts

Posted by johnsmart on October 15, 2009 at 3:58 PM PDT

A good build script should be self-contained, self-booting and portable. You should be able to check it out of source control and run it. No buts. Period. The rules (or tips) that follow should be self-evident and applied everywhere. Unfortunately, they are not. The following "rules" are based on issues I've encountered in existing real-world build scripts.

'Testing and TDD for Java Developers' is coming to Melbourne this December

Posted by johnsmart on October 12, 2009 at 8:17 PM PDT

I am thrilled to announce that I will be running the 'Testing and TDD for Java Developers' workshop in Melbourne on December 8-9, 2009.

For a fistful of dollars: quantifying the benefits of TDD

Posted by johnsmart on October 11, 2009 at 8:13 PM PDT

a-fistful-of-dollars