Posted on Tuesday 29 January 2008
Java Rant Episode 2 – January 29, 2008
Show Notes…
Welcome back to the Java Rant podcast
Code Testing
- Functional testing
- Integration testing
- Unit testing
Mock Objects
JUnit talk
Types of Unit Testing Methodologies
- White box tests
- Black box tests
- Test driven development
Test coverage tools & the false sense of security
Project Pea & Matt Harrah
Three challenges
Beginners – static members:
- Write a class that counts the number of times an instance is created
- You will need a main method that loops a certain number of times creating instances of your class
- Each time an instance is created, print the number of times an instance has been created.
Intermediate – white box testing (download intermediate file)
- Download the Java file from the show notes and write a JUnit test to make sure it works
- Quick hint: It doesn’t work under all situations
Advanced – test driven development (download advanced file)
- Download the interface from the show notes, it tells exactly what the implementation is supposed to do
- Write tests that check to see if your implementation works
- Write the implementation code until your tests all pass
Thanks
- Jordan Richley for the JavaRant artwork
- Feedburner.com for the feed redirects
- Theme Music
- Opening -”Motherboard” composed by Andy Potterton, published by Perfect Solution Music
- Closing - “Quick Escape” by Hot Like Cajun from www.hotlikecajun.com
- Contact
- http://www.javarant.com
- http://groups.google.com/group/javarant
- Call with questions or feedback - 206-350-8705
- or email comments@javarant.com






