CoCoME System Tests

org.cocome.tradingsystem.systests.interfaces
Interface ITestDriver


public interface ITestDriver

This is the central interface for the glue code as it is the entry point for all tests. The test driver isolates the system tests from the actual implementation. This way the tests themselves can be kept simple and for testing a different implementation only the test driver needs to be adjusted.

The test driver is both used to initialize the entire system as well as a factory for stores and cash desks.

Version:
$Rev: 47 $
Author:
Benjamin Hummel, Christian Pfaller, $Author: hummel $

Method Summary
 ICashDesk createCashDesk(IStorePC store)
          Returns a newly created cash desk system.
 IStorePC createStore()
          Returns a newly created store.
 IBank getBank()
          Returns the globally unique bank used for all credit card transactions.
 IEnterprise initializeSystem()
          This is the first method called before any other method of the test driver is called.
 void shutdownSystem()
          Releases all ressources and stops the system.
 

Method Detail

initializeSystem

IEnterprise initializeSystem()
                             throws java.lang.Exception
This is the first method called before any other method of the test driver is called. Here the system is started.

Returns:
an enterprise object.
Throws:
java.lang.Exception

shutdownSystem

void shutdownSystem()
Releases all ressources and stops the system. No methods on this driver or any other of the objects created will be called afterwards. You are guaranteed that this will be called after testing is completed.


createStore

IStorePC createStore()
                     throws java.lang.Exception
Returns a newly created store.

Throws:
java.lang.Exception

createCashDesk

ICashDesk createCashDesk(IStorePC store)
                         throws java.lang.Exception
Returns a newly created cash desk system. If required the test driver has to create the interfaces for the connected hardware as well.

Parameters:
store - the store this cash desk is connected to.
Throws:
java.lang.Exception

getBank

IBank getBank()
              throws java.lang.Exception
Returns the globally unique bank used for all credit card transactions.

Throws:
java.lang.Exception

CoCoME System Tests

CoCoME System Tests - 0.1