August 13th, 2008
At the Agile 2008 conference Ilja Preuß held a session on JDemo.
The slides can be downloaded here.
February 27th, 2008: New Version 1.6.0 released
- JDemo is now based on JDK 1.6.0
- There is a new
@Demo
annotation, that can be used just like the @Test
annotation in JUnit 4. Note that @Demo
replaces the old @JDemo
(now deprecated).
- Showing files (from
de.jdemo.framework.DemoCase
subclasses) now uses the new JDK 1.6 java.awt.Desktop
class for opening files in an appropriate application
- Added
DemoAsTestRunner
as new Junit4TestRunner
for demos, so demos can now be run as unit tests w/o writing suites.
- Improved reliability of automatically taking screenshots.
- Removed dependency from disy-commons layout classes. This might have lead to incompatibility problems as soon as disy-commons is released a open source library.
- Removed direct dependency to the Java2Html library (used for displaying source code when running the swing demo runner outside Eclipse). It will still be used if the
java2html.jar
is on the classpath. Version 6.0 or greater required (not yet released, but an up-to-date milestone build is contained in the JDemo download package).
September 15th, 2007: New Version 1.5.0 released
- JDemo now requires JDK 1.5
- Improved JUnit 4.4 compatibility: JDemo now contains new class
de.jdemo.junit.JDemoSuiteClassRunner
to run demos as JUnit 4.4-Tests.
Many thanks to Sandra Sieroux and Urs Reupke for this contribution.
Usage: Simply add the Annotation
@RunWith(value=de.jdemo.junit.JDemoSuiteClassRunner.class)
to your JDemo demo suite (!) class. It can than be run as JUnit 4.4 test.
- Minor bugfixes
April 11th, 2005
Bugfix version 1.4.9 of the Eclipse 3.1M6 plugin released
April 9th, 2005
New Version 1.2.1 released (Version 1.4.8 / 1.3.8 and 1.2.8 of the Eclipse 3.1 / 3.0 and 2.x plugin)
- Bugfix #1119045 DemoRunner freezes while SWT demo shell on screen
- When launching the SwingDemoCaseRunner, the first demo case in the tree is selected automatically.
- Added 'Show source code' item to the 'Edit' menu, added shortcut 'F3'.
- Added 'Copy demo identifier' item to the 'Edit' menu, added shortcut 'Ctrl-C'.
- Added sources ZIP to distribution file
January 8th, 2005:
New Version 1.2 of the documentation released
December 29th, 2004: New Version 1.2 released (Version 1.3.7/1.2.7 of the Eclipse 3.0 and 3.1 / 2.x plugin)
- JDemo annotations are now supported when being run on a JRE1.5 (Menu "View" -> "Annotation panel").
- Size and position of the demo runner window are preserved using the Java Preferences API.
jdemo.jar
has been split up into jdemo_core.jar
(compile time dependency) and jdemo_runner.jar
(run time dependency only).
The jdemo.jar
file (containing both) is still included in the distribution.
- Added a nice manager for Look&Feels:
Custom Look&Feels are now preserved when exiting the demo runner
(thanks to the Java Preferences API). Also a default Look&Feel can be chosen, so you will not
have to enter the Look&Feel over and over again.
- New demo case base class
PlainDemoCase
for demo cases having output that is not supported
by the other demo case base classes.
- Bugfix 1055434: Drag'n'Drop can cause NullPointerException
- Some minor bugfixes and improvements
November 28th, 2004:
The slides from the XP Days Germany session
Testgetriebene Entwicklung und interaktives Testen - Symbiose statt Widerspruch?
are now online at slides_2004_11_22.pdf (1.3MB).
The source code for the example from the presentation is available in the JDemo Sourceforge CVS as project JDemo_internal_XPDays
.
September 10th, 2004:
The article JDemo: Interactive Testing Refactored
has been published on ONJava.com. It gives a good introduction to the JDemo framework.
September 2nd, 2004:
Documentation Version 0.5 released
September 2nd, 2004: Bugfix Version 1.1.2 released
- Improved error messages in Ant tasks
- Bugfix: Sourcepath uses correct path separator
- Version 1.3.6/1.2.6 of the Eclipse 3.0/2.x plugin
September 1st, 2004:
Using JDemo in conjunction with test driven software development will
be a topic on XP Days Germany on November 22nd:
Testgetriebene Entwicklung und interaktives Testen - Symbiose statt Widerspruch?
August 16th, 2004: New Versions released
- Version 1.1.1 of the framework: examples updated and minor bugfixes
- Version 0.4 of the documentation
- Version 1.3.5/1.2.5 of the Eclipse 3.0/2.x plugin
August 16th, 2004:
Improved design of the JDemo homepage
July 23rd, 2004: Version 1.1.0 of the framework and version 0.3 of the documentation released.
- Exceptions in Demo testcases are handled as error instead of failure. This leads to a better exception stack trace and IMHO is much better since there is no assertion failed.
SwingDemoCase
, AwtDemoCase
and SwtDemoCase
no longer extend the DemoCase
class. So for showing files you have to subclass the DemoCase
class.
- There is a new method
show(CharacterSequence)
for showing text from within DemoCase
subclasses. This is the appropriate way for textual demos. Output to System.err
and System.out
shall no longer be used.
- There are new Ant tasks for capturing textual and file demos.
- The Ant task for capturing
System.out/err
is deprected and will be removed soon.
- Each demo now must contain exactly one call to a
show
method. Otherwise executing the demo will cause an exception (not yet true for SwtDemoCase
).
- Incremental find (Ctrl-J) in the Swing based demo runner now works in both directions (up/down).
- Added a 'Bring To Front' action for Gui based demos to the execution list context menu in the Swing based demo runner.
- Decreased the size of the
jdemo.jar
and the download package by removing unnecessary classes.
- Some minor Bugfixes.
July 4th, 2004: Version 1.0.3 of the framework released.
- SwingDemoCase has two new methods for showing text as demo in fixed width or proportional font:
show(CharSequence text)
and showProportional(CharSequence text)
- Improved error messages.
- Adjusted icons to fit the new Eclipse 3.0 look.
- Timeout of Demo2TestConverter defaults to 30000ms (instead of 5000).
- Minor bugfixes.
May 8th, 2004: Version 0.2 of the documentation released.
May 8th, 2004: Version 1.0.1 released.
- Lots of bugfixes and minor changes.
April 20th, 2004: Version 1.0.0 released.
- Look&Feel for Swing demos can be specified before launching a demo in the demo runner.
- Look&Feel for Swing demos can be specified taking a screenshot using the Ant task.
- Custom Look&Feels can be specified in the demo runner.
- During startup of the demo runner an optional source path can be specified as command line option. Users can
then view the source code directly from the runner. The source code is syntax highlighted by
using the Java2Html library.
- Screenshots can be rescaled
- Screenshots of icons without title no longer contain empty borders (due to minimum window size)
- Lots of bugfixes and minor changes.
October 18th, 2003: Version 0.1 of the JDemo Documentation released
October 12th, 2003: Version 0.0.19 released. Improved API-Doc, tests and examples
October 2nd, 2003: Version 0.0.18 released as the first public version.