This is the test driver for the CoCoME reference implementation. For 
implementation Details the JavaDoc and the source code should be consulted.

RUNNING TESTS
-------------

The tests expect a specific setup of the trading system. Both the cocomeimpl 
and the cocome-systests folders should reside in the same directory as this 
one, so the setup looks like

  cocome
   |+ cocome-impl
   |+ cocome-systests
   |+ cocome-testdriver
   
If this is not the case, the paths have t o be adjusted in the build.xml file.

Furthermore the files located in the config subdirectory must be used for 
starting the reference implementation. The simplest way to achieve this is by
copying these files to the cocome-impl/rsc folder.

Next you have to start the implementation using ant as described in the 
documentation there:

$cocome-impl/rsc> ant deleteDB
$cocome-impl/rsc> ant runInfrastructure
$cocome-impl/rsc> ant runInventorySystem
$cocome-impl/rsc> ant runCashDeskLines

Make sure to have each command completed before executing the next one, because
they depend on each other. This will start up 3 Stores and for the first store 
3 CashDesks.

Now we are ready to run the tests. This is done from the testdriver's directory.

$cocome-testdriver> ant test1

Note that you can replace "test1" with "test2", "test3", ..., "test8". Which
testcase is called by these targets is documented in the build.xml file.

After the test completed, you have to shut-down the system (kill all processes, 
if necessary using the kill command (or the TaskManager on Windows)) before 
running another test, as the tests require a known starting point for running.

