de.jdemo.junit
Class Demo2TestConverter

java.lang.Object
  extended by de.jdemo.junit.Demo2TestConverter

public class Demo2TestConverter
extends java.lang.Object

Converts a demo (or demo suite) to a unit test. The test ensures that the demo can be run and cancelled without throwing an exception.

Author:
Markus Gebhard

Constructor Summary
Demo2TestConverter()
           
 
Method Summary
static junit.framework.Test createTest(IDemo demo)
          Creates a JUnit test from the given demo (democase or demosuite) using default timeout.
static junit.framework.Test createTest(IDemo demo, long timeOutMillis)
          Creates a JUnit test from the given demo (democase or demosuite) using the specified timeout.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Demo2TestConverter

public Demo2TestConverter()
Method Detail

createTest

public static junit.framework.Test createTest(IDemo demo)
Creates a JUnit test from the given demo (democase or demosuite) using default timeout.

See Also:
createTest(IDemo, long)

createTest

public static junit.framework.Test createTest(IDemo demo,
                                              long timeOutMillis)
Creates a JUnit test from the given demo (democase or demosuite) using the specified timeout. The test will fail with a timeout error if the demo method does not return within the given number of milliseconds.

See Also:
createTest(IDemo)


JDemo homepage: http://www.jdemo.de
Copyright © 2003-2008 Markus Gebhard. All Rights Reserved.