|
CoCoME System Tests | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ICashBox
Interface of the cashbox consisting of a "box" containing the money and some keys allowing user input. We do not model explicit key presses at this level. It is the responsibility of the test driver to resolve these high level commands to single key strokes if the application requires this.
Method Summary | |
---|---|
void |
enterReceivedCash(int centAmount)
Enter the amount of cash received. |
void |
finishSale()
Corresponds to pressing the "sale finished" button. |
void |
manuallyEnableCreditCardReader()
Manually enable the credit card reader to be able to take credit card payment while in expressmode |
void |
setCashboxStatus(boolean closed)
Returns the current status of the cashbox to the system. |
void |
startCashPayment()
Corresponds to pressing the "cash payment" button. |
void |
startCreditCardPayment()
Corresponds to pressing the "credit card payment" button. |
void |
startNewSale()
Corresponds to pressing the "new sale" button. |
boolean |
wasOpenSignalSent()
Returns whether the open signal for the cashbox has been sent (and not yet been read). |
Methods inherited from interface org.cocome.tradingsystem.systests.interfaces.IUpdateReceiver |
---|
waitForUpdate |
Method Detail |
---|
boolean wasOpenSignalSent() throws java.lang.Exception
java.lang.Exception
void setCashboxStatus(boolean closed) throws java.lang.Exception
closed
- true if the cashbox is closed.
java.lang.Exception
void startNewSale() throws java.lang.Exception
java.lang.Exception
void finishSale() throws java.lang.Exception
java.lang.Exception
void startCashPayment() throws java.lang.Exception
java.lang.Exception
void startCreditCardPayment() throws java.lang.Exception
java.lang.Exception
void enterReceivedCash(int centAmount) throws java.lang.Exception
centAmount
- the amount in Cent (or whatever currency)
java.lang.Exception
void manuallyEnableCreditCardReader() 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 |