JavaOne Community Corner Podcast j1-2k8-mtW07: JMX for Unit Tests in Test-Driven Development

by David Walend
05/08/2008

Test-driven development can help to build software better and faster. It offers more than just simple validation of correctness; it can also drive the design of a program. In object-oriented programming, good use of encapsulation can make observing and testing some design features difficult. Further, the developer has to define classes and methods before compiling tests that use those classes and methods. Using the Java Management Extensions -- JMX -- to observe internal state provides an elegant alternative to reflection and compiler hacks. As a byproduct it provides a JMX interface for the completed system. This talk will cover how to benefit from unit testing with JMX, and the code and overhead required to use the technique.

Slides of this session are available as a PDF file.

Download Audio

You can download the MP3 of this podcast episode directly, or copy and paste the java.net Community Corner mini-talks feed into a podcast client like Juice or iTunes. You can also subscribe via the iTunes Store.

David Walend started learning Java with the alpha 3 release in 1994 after a kind computer science professor at Tufts University overheard his tantrum on distributed simulations, memory management, multithreaded code and meteorologists of questionable parentage.


 Feed java.net RSS Feeds