CoCoME System Tests

org.cocome.tradingsystem.systests.interfaces
Interface IUserDisplay

All Superinterfaces:
IUpdateReceiver

public interface IUserDisplay
extends IUpdateReceiver

Interface of the display visible to the user displaying product information and the running total. As the exact format of the display output is not specified, there are many methods to dermine the meaning of the display contents. These must be implemented by the glue code (which in turn should know enough about the actual implementation to extract this information).

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

Method Summary
 boolean isMessageForCreditCardNotPossibleShown()
          Determines if the display currently shows the apropriate message to indicate payment by credit card is not possible.
 boolean isMessageForCreditCardPaymentSuccessfulShown()
          Determines if the display currently shows the apropriate message to indicate payment by credit card was successful.
 boolean isMessageForCreditCardValidationFailedShown()
          Determines if the display currently shows the apropriate message to indicate a failed validation of a credit card.
 boolean isMessageForExpressModeShown()
          Determines if the display currently shows the aporpriate message to indicate express mode.
 boolean isMessageForInvalidBarcodeShown()
          Determines if the display currently shows the apropriate message to indicate scan of an invalid / unkown barcode; returns false otherwise
 boolean isPriceShown(int expectedPrice)
          Determines if the display currently shows the expected price of a product, returns false if not.
 boolean isProductNameShown(java.lang.String expectedName)
          Determines if the display currently shows the expected name of a product, returns false if not.
 
Methods inherited from interface org.cocome.tradingsystem.systests.interfaces.IUpdateReceiver
waitForUpdate
 

Method Detail

isMessageForInvalidBarcodeShown

boolean isMessageForInvalidBarcodeShown()
                                        throws java.lang.Exception
Determines if the display currently shows the apropriate message to indicate scan of an invalid / unkown barcode; returns false otherwise

Throws:
java.lang.Exception

isProductNameShown

boolean isProductNameShown(java.lang.String expectedName)
                           throws java.lang.Exception
Determines if the display currently shows the expected name of a product, returns false if not.

Parameters:
expectedName - - name of prodouct to be expeted in display
Throws:
java.lang.Exception

isPriceShown

boolean isPriceShown(int expectedPrice)
                     throws java.lang.Exception
Determines if the display currently shows the expected price of a product, returns false if not.

Parameters:
expectedPrice - - price of product to be expeted in display
Throws:
java.lang.Exception

isMessageForExpressModeShown

boolean isMessageForExpressModeShown()
                                     throws java.lang.Exception
Determines if the display currently shows the aporpriate message to indicate express mode.

Throws:
java.lang.Exception

isMessageForCreditCardNotPossibleShown

boolean isMessageForCreditCardNotPossibleShown()
                                               throws java.lang.Exception
Determines if the display currently shows the apropriate message to indicate payment by credit card is not possible.

Throws:
java.lang.Exception

isMessageForCreditCardPaymentSuccessfulShown

boolean isMessageForCreditCardPaymentSuccessfulShown()
                                                     throws java.lang.Exception
Determines if the display currently shows the apropriate message to indicate payment by credit card was successful.

Throws:
java.lang.Exception

isMessageForCreditCardValidationFailedShown

boolean isMessageForCreditCardValidationFailedShown()
                                                    throws java.lang.Exception
Determines if the display currently shows the apropriate message to indicate a failed validation of a credit card.

Throws:
java.lang.Exception

CoCoME System Tests

CoCoME System Tests - 0.1