CoCoME System Tests

org.cocome.tradingsystem.systests.interfaces
Interface ICashBox

All Superinterfaces:
IUpdateReceiver

public interface ICashBox
extends IUpdateReceiver

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.

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

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

wasOpenSignalSent

boolean wasOpenSignalSent()
                          throws java.lang.Exception
Returns whether the open signal for the cashbox has been sent (and not yet been read).

Throws:
java.lang.Exception

setCashboxStatus

void setCashboxStatus(boolean closed)
                      throws java.lang.Exception
Returns the current status of the cashbox to the system. This is called only when the status changes, but the test driver may support some polling mechanism or regular sending of the status if the implementation of the system requires this.

Parameters:
closed - true if the cashbox is closed.
Throws:
java.lang.Exception

startNewSale

void startNewSale()
                  throws java.lang.Exception
Corresponds to pressing the "new sale" button.

Throws:
java.lang.Exception

finishSale

void finishSale()
                throws java.lang.Exception
Corresponds to pressing the "sale finished" button.

Throws:
java.lang.Exception

startCashPayment

void startCashPayment()
                      throws java.lang.Exception
Corresponds to pressing the "cash payment" button.

Throws:
java.lang.Exception

startCreditCardPayment

void startCreditCardPayment()
                            throws java.lang.Exception
Corresponds to pressing the "credit card payment" button.

Throws:
java.lang.Exception

enterReceivedCash

void enterReceivedCash(int centAmount)
                       throws java.lang.Exception
Enter the amount of cash received. This might be resolved to multiple key presses by the test driver.

Parameters:
centAmount - the amount in Cent (or whatever currency)
Throws:
java.lang.Exception

manuallyEnableCreditCardReader

void manuallyEnableCreditCardReader()
                                    throws java.lang.Exception
Manually enable the credit card reader to be able to take credit card payment while in expressmode

Throws:
java.lang.Exception

CoCoME System Tests

CoCoME System Tests - 0.1