Java Rant Episode 2 - January 29, 2008

Posted on Tuesday 29 January 2008

 
icon for podpress  Standard Podcast [19:27m]: Play Now | Play in Popup | Download

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:

  1. Write a class that counts the number of times an instance is created
  2. You will need a main method that loops a certain number of times creating instances of your class
  3. Each time an instance is created, print the number of times an instance has been created.

Intermediate – white box testing (download intermediate file)

  1. Download the Java file from the show notes and write a JUnit test to make sure it works
  2. Quick hint: It doesn’t work under all situations

Advanced – test driven development (download advanced file)

  1. Download the interface from the show notes, it tells exactly what the implementation is supposed to do
  2. Write tests that check to see if your implementation works
  3. 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

Share and Enjoy:
  • Digg
  • del.icio.us
  • Slashdot
  • Technorati
  • description

No comments have been added to this post yet.

Leave a comment

(required)

(required)


Information for comment users
Line and paragraph breaks are implemented automatically. Your e-mail address is never displayed. Please consider what you're posting.

Use the buttons below to customise your comment.


RSS feed for comments on this post | TrackBack URI