JDemo provides a framework for demonstrating code for interactive testing. It features many convenience classes and methods that make implementing demos very easy.
JDemo has been updated to be more compatible and similar to JUnit 4: it contains a new @Demo annotation that can be used to mark methods as demo methods. This release includes a DemoAsTestRunner that can be used to run demos as JUnit 4 tests. The JDemo framework and the Eclipse plugin are now based on JDK 1.6, and contain some minor improvements.
URL: JDemo - Java Demonstration Framework