Main Contents

Unit Testing in Presentations

software development, test driven development

Chris Scheuble presented all eight examples in his Java security talk with JUnit tests. A few years ago this would have been surprising since examples are so commonly shown with main() methods. Unit testing is becoming more just an accepted way of doing development. Now if more frameworks and tools could make testing easier by default.

Ed Gibbs @ July 11, 2007

3 Comments

  1. Axil July 16, 2007 @ 10:44 am

    BTW…check out TestNG from Cedric Beust (currently at Google and from EJBGen fame).

    http://testng.org/doc/

    Think of it as JUnit, but better. I could go into some details, but one of the major differences is that JUnit will instantiate a class for every method - TestNG won’t.

    I’ve used it and love it. No regrets.

  2. Ed Gibbs August 3, 2007 @ 9:50 pm

    I’ve come close to switching to TestNG, but JUnit 4 has been good enough for my purposes. I have actually downloaded and tried it out during at talk from Cedric.

Leave a comment


Feed