de.uds.cs.st.dd.core.test
Class DDTest

java.lang.Object
  |
  +--de.uds.cs.st.dd.core.test.DDTest

public class DDTest
extends Object

Basic test class for the DD class. Provides a simple example of the usage of DD.

Author:
Philipp Bouillon

Nested Class Summary
private  class DDTest.SimpleTester
          Internal class to provide a simple testing mechanism.
 
Constructor Summary
DDTest()
          The constructor.
 
Method Summary
static TConfiguration createTConfiguration1()
          Creates a configuration that consists of 20 integers (1..20).
static TConfiguration createTConfiguration2()
          Creates a configuration that consists of single words.
static void main(String[] args)
          The main function calls DD with a test method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DDTest

public DDTest()
The constructor.

Method Detail

createTConfiguration1

public static TConfiguration createTConfiguration1()
Creates a configuration that consists of 20 integers (1..20). * * @return a configuration that contains the integers from 1 to 20.


createTConfiguration2

public static TConfiguration createTConfiguration2()
Creates a configuration that consists of single words. Notice that * "old,\r" is considered to be a single word. The separation is made * between the spaces. * * @return a configuration that contains the words of the first paragraph * of the first canto of the "Lay of Leithian" by J.R.R. Tolkien * (with a few mistakes probably -- including the missing accent on * Luthien's name).


main

public static void main(String[] args)
The main function calls DD with a test method. * * @param args not used.