|
CoCoME System Tests | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 |
---|
IEnterprise initializeSystem() throws java.lang.Exception
java.lang.Exception
void shutdownSystem()
IStorePC createStore() throws java.lang.Exception
java.lang.Exception
ICashDesk createCashDesk(IStorePC store) throws java.lang.Exception
store
- the store this cash desk is connected to.
java.lang.Exception
IBank getBank() throws java.lang.Exception
java.lang.Exception
|
CoCoME System Tests | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |