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

java.lang.Object
  |
  +--de.uds.cs.st.dd.core.test.DDTest.SimpleTester
All Implemented Interfaces:
Tester
Enclosing class:
DDTest

private class DDTest.SimpleTester
extends Object
implements Tester

Internal class to provide a simple testing mechanism. * * @author Philipp Bouillon


Field Summary
private  boolean debugMode
          Flag to indicate if debugging information is shown or not.
 
Constructor Summary
DDTest.SimpleTester(boolean debugInfo)
          Constructa a SimpleTester object.
 
Method Summary
private  void displayOutput(TConfiguration c, int result)
          Displays some debugging output.
 int test(TConfiguration c)
          This method overrides the method from the Tester interface.
 int test1(TConfiguration c)
          Test 1: Fails for configurations that contain 5 and 8.
 int test2(TConfiguration c)
          Test 2: Fails for configurations that contain the numbers 1 - 8.
 int test3(TConfiguration c)
          Test 3: Fails for configurations that contain the numbers 1 - 8.
 int test4(TConfiguration c)
          Test 4: Fails for configurations that contain the numbers 1 - 8.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debugMode

private boolean debugMode
Flag to indicate if debugging information is shown or not.

Constructor Detail

DDTest.SimpleTester

public DDTest.SimpleTester(boolean debugInfo)
Constructa a SimpleTester object. If debugInfo is set to true, each * test and each test outcome are displayed on the screen (beware: this * leads to a cluttered view). * * @param debugInfo if set to true, debugging information will be shown.

Method Detail

test

public int test(TConfiguration c)
This method overrides the method from the Tester interface. * Simply call the test you wish to perform here.

Specified by:
test in interface Tester

displayOutput

private void displayOutput(TConfiguration c,
                           int result)
Displays some debugging output. * * @param c current configuration. * @param result result of the test.


test1

public int test1(TConfiguration c)
Test 1: Fails for configurations that contain 5 and 8. * * @param c configuration to test. * @return test outcome.


test2

public int test2(TConfiguration c)
Test 2: Fails for configurations that contain the numbers 1 - 8. * * @param c configuration to test. * @return test outcome.


test3

public int test3(TConfiguration c)
Test 3: Fails for configurations that contain the numbers 1 - 8. * * @param c configuration to test. * @return test outcome.


test4

public int test4(TConfiguration c)
Test 4: Fails for configurations that contain the numbers 1 - 8. * * @param c configuration to test. * @return test outcome.