dip.misc
Class TestSuite

java.lang.Object
  extended bydip.misc.TestSuite

public final class TestSuite
extends java.lang.Object

A very hastily-programmed Test harness..

This will read in a file of cases (1 or more). All cases must use the same variant. The variant is then loaded, orders are parsed, and adjudication then occurs. After adjudication, the positions of units are checked with that of the case file for discrepancies. If no discrepancies exist, the case passes.

Note that when in performance-testing mode, all logging is disabled and comparison-checking is not performed; the goal is testing adjudicator code only.

All output is printed to stdout

Case File Format Notes:

Case File Keywords:

An Example Case File:

        VARIANT_ALL Standard
        CASE Example Case 1 (illustrative example)
        PRESTATE_SETPHASE Fall 1901, Movement
        PRESTATE
                Russia: F con
                Russia: F bla
                Turkey: F ank
        ORDERS
                Russia: F con S F bla-ank
                Russia: F bla-ank
                Turkey: F ank-con
        POSTSTATE
                Russia: F con
                Russia: F ank
        POSTSTATE_DISLODGED
                Turkey: F ank
        END
        


Method Summary
static void main(java.lang.String[] args)
          Start the TestSuite
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static void main(java.lang.String[] args)
Start the TestSuite



Copyright 2002-2004 Zachary DelProposto / jDip Development Team. All Rights Reserved.