Skip to main content

Blog Archive for johnsmart during November 2009

Come take a quick, guided tour of Test-Driven Development practices! The following presentation is a module from the 'Testing and Test-Driven Development for Java Developers' Course. It goes through a worked introduction to TDD theory and practices. Enjoy! function InsertSampleMovie() { document.write(’\n’); document.write(’\n’); document.write(’\n’); document.write(’\n’); } InsertSampleMovie...
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? In this article, we look at how to obtain test data from an Excel spreadsheet....
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? (By legacy code, I mean any code that does not have a comprehensive set of automated tests, so you might be...
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. This course is already proving popular, with requests for on-site interventions coming in from around the world. Already a key best practice in Agile Development, Test Driven Development (TDD), as well as related techniques...
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. In this article, we'll take a further look at what you can do with a Maven pom file written in Groovy. Jason Dillon, the guy who brought us GMaven, has been working hard on extending the Groovy pom scripting features,...
In this edition of the Java Power Tools Newsletter, we will be looking at strategies and tools for developer web testing. This is an important, but often overlooked, part of developer testing. After all, the web layer is what the end user actually sees and manipulates! And it is just as subject to bugs as any other application layer. In this article, we look at three different levels of developer...