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


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.
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.