CoCoME System Tests
A B C D E F G H I L M N O P R S T U W

A

addOrderItem(IProduct, int) - Method in interface org.cocome.tradingsystem.systests.interfaces.IOrder
Adds a item to this order.
ALPHA - Static variable in class org.cocome.tradingsystem.systests.util.ProductGenerator
Available alphabet for product name generation.
amount - Variable in class org.cocome.tradingsystem.systests.util.GeneratedStockItem
The amount currently on stock.

B

bank - Variable in class org.cocome.tradingsystem.systests.scenarios.TestScenarioBase
The bank
barcode - Variable in class org.cocome.tradingsystem.systests.util.GeneratedProduct
The barcode of the product.

C

CARD_MONEY - Static variable in class org.cocome.tradingsystem.systests.scenarios.ProcessSaleCreditCardFailTest
Mony available for the credit card, given in cents Thus 1 Million Euro should be enough to cover every sale
CARD_MONEY - Static variable in class org.cocome.tradingsystem.systests.scenarios.ProcessSaleCreditCardTest
Mony available for the credit card, given in cents Thus 1 Million Euro should be enough to cover every sale
CARD_NUMBER - Static variable in class org.cocome.tradingsystem.systests.scenarios.ProcessSaleCreditCardFailTest
Number of valid credit card in this test
CARD_NUMBER - Static variable in class org.cocome.tradingsystem.systests.scenarios.ProcessSaleCreditCardTest
Number of valid credit card in this test
CARD_PIN - Static variable in class org.cocome.tradingsystem.systests.scenarios.ProcessSaleCreditCardFailTest
PIN of valid credit card in ths test
CARD_PIN - Static variable in class org.cocome.tradingsystem.systests.scenarios.ProcessSaleCreditCardTest
PIN of valid credit card in ths test
cashBox - Variable in class org.cocome.tradingsystem.systests.scenarios.ProcessSaleBase
The cash box used for this sale
cashDesk - Variable in class org.cocome.tradingsystem.systests.scenarios.ProcessSaleBase
The cash desk used for this sale
cashDesks - Variable in class org.cocome.tradingsystem.systests.scenarios.TestScenarioBase.StoreWrapper
The list of cash desks for this store.
checkExpressModeLightsOn() - Method in class org.cocome.tradingsystem.systests.scenarios.ManageExpressCheckoutBase
Executes actions to check the Lights display is switched on correctly.
checkNotificationOfExpressMode() - Method in class org.cocome.tradingsystem.systests.scenarios.ManageExpressCheckoutBase
Executes actions to check notification of express mode.
copySetup(TestScenarioBase) - Method in class org.cocome.tradingsystem.systests.scenarios.TestScenarioBase
Copy the setup information from another scenario.
createCashDesk(IStorePC) - Method in interface org.cocome.tradingsystem.systests.interfaces.ITestDriver
Returns a newly created cash desk system.
createCashDesk() - Method in class org.cocome.tradingsystem.systests.scenarios.TestScenarioBase.StoreWrapper
Creates a new cash line for this store.
createCreditCard(int, int, int) - Method in interface org.cocome.tradingsystem.systests.interfaces.IBank
Create a new credit card for this bank.
createOrder() - Method in interface org.cocome.tradingsystem.systests.interfaces.IStorePC
Creates a new, empty order, which can be filled with order items and executed in the ordering process.
createProduct(int, int, String) - Method in interface org.cocome.tradingsystem.systests.interfaces.IEnterprise
Creates a new product.
createStore() - Method in interface org.cocome.tradingsystem.systests.interfaces.ITestDriver
Returns a newly created store.
createStore(int) - Method in class org.cocome.tradingsystem.systests.scenarios.TestScenarioBase
Creates a new store with the given number of cash lines and a generated stock.
createTestDriver() - Method in class org.cocome.tradingsystem.systests.TestManager
Returns a newly created test driver.
currentlySold - Variable in class org.cocome.tradingsystem.systests.scenarios.ProcessSaleBase
The number of items currently sold.

D

deleteCreditCard(int) - Method in interface org.cocome.tradingsystem.systests.interfaces.IBank
Deletes the given credit card.

E

enterAllRemainingProducts() - Method in class org.cocome.tradingsystem.systests.scenarios.ProcessSaleBase
Executes actions for entering products in the cashbox.
enterAllRemainingProducts() - Method in class org.cocome.tradingsystem.systests.scenarios.ProcessSaleInvalidItemIdTest
Executes actions for entering a product where at first the barcode reader send an invalid item id.
enterCard(int) - Method in interface org.cocome.tradingsystem.systests.interfaces.ICardReader
Reports the number read from the credit card.
enterPin(int) - Method in interface org.cocome.tradingsystem.systests.interfaces.ICardReader
Reports the pin entered at the card reader.
enterprise - Variable in class org.cocome.tradingsystem.systests.scenarios.TestScenarioBase
The (globally unique) enterprise used.
enterprise - Variable in class org.cocome.tradingsystem.systests.util.ProductGenerator
The enterprise used for creating products.
enterProduct() - Method in class org.cocome.tradingsystem.systests.scenarios.ProductExchangeAmongStoresTest
Executes actions for entering the specific product
enterProducts(int) - Method in class org.cocome.tradingsystem.systests.scenarios.ProcessSaleBase
Executes actions for entering products in the cashbox.
enterReceivedCash(int) - Method in interface org.cocome.tradingsystem.systests.interfaces.ICashBox
Enter the amount of cash received.
executeOrder(IOrder) - Method in interface org.cocome.tradingsystem.systests.interfaces.IStorePC
Execute an order, i.e., we are done with adding products to that order so it can be sent out.
existsProductTransfer(IProduct, IStorePC, IStorePC) - Method in interface org.cocome.tradingsystem.systests.interfaces.IEnterprise
Returns whether there is a product transfer requested (might be visible by orders in the database).
expectedAmounts - Variable in class org.cocome.tradingsystem.systests.scenarios.ProcessSaleBase
Array which holds the expected remaining amount of a product in the store

F

finishSale() - Method in interface org.cocome.tradingsystem.systests.interfaces.ICashBox
Corresponds to pressing the "sale finished" button.
finishSale() - Method in class org.cocome.tradingsystem.systests.scenarios.ProcessSaleBase
Executes actions for finishing sale (after entering all products in cashbox, before payment).

G

generate(int) - Method in class org.cocome.tradingsystem.systests.util.ProductGenerator
Generate the given number of random products.
generate() - Method in class org.cocome.tradingsystem.systests.util.ProductGenerator
Generate a single random product.
generate(int) - Method in class org.cocome.tradingsystem.systests.util.StockGenerator
Generate a single random stock item from the product of index i in the product generator.
generate(int, int, int, int) - Method in class org.cocome.tradingsystem.systests.util.StockGenerator
Generate a single random stock item from the product of index i in the product generator with the given amounts in stock.
generateAll() - Method in class org.cocome.tradingsystem.systests.util.StockGenerator
Generate stock items for all known products.
GeneratedProduct - Class in org.cocome.tradingsystem.systests.util
Simple storage class for generated products.
GeneratedProduct(int, int, String, IProduct) - Constructor for class org.cocome.tradingsystem.systests.util.GeneratedProduct
Create a new instance.
generatedProducts - Variable in class org.cocome.tradingsystem.systests.util.ProductGenerator
A list of all products generated so far.
generatedStock - Variable in class org.cocome.tradingsystem.systests.util.StockGenerator
A list of all stock items generated so far.
GeneratedStockItem - Class in org.cocome.tradingsystem.systests.util
Simple storage class for generated products.
GeneratedStockItem(GeneratedProduct, int, int, int, int) - Constructor for class org.cocome.tradingsystem.systests.util.GeneratedStockItem
Create a new instance.
getAmount(IProduct) - Method in interface org.cocome.tradingsystem.systests.interfaces.IStorePC
Get the current amount of a product in this store.
getAmount() - Method in class org.cocome.tradingsystem.systests.util.GeneratedStockItem
Returns the amount currently on stock.
getAvailableMoney(int) - Method in interface org.cocome.tradingsystem.systests.interfaces.IBank
Returns the amount of money (in cents) available for this card.
getBank() - Method in interface org.cocome.tradingsystem.systests.interfaces.ITestDriver
Returns the globally unique bank used for all credit card transactions.
getBarcode() - Method in class org.cocome.tradingsystem.systests.util.GeneratedProduct
Returns the barcode.
getBarcodeScanner() - Method in interface org.cocome.tradingsystem.systests.interfaces.ICashDesk
Returns the bar code scanner for this cash desk.
getCardReader() - Method in interface org.cocome.tradingsystem.systests.interfaces.ICashDesk
Returns the card reader for this cash desk.
getCashBox() - Method in interface org.cocome.tradingsystem.systests.interfaces.ICashDesk
Returns the cashbox for this cash desk.
getCashDesk(int) - Method in class org.cocome.tradingsystem.systests.scenarios.TestScenarioBase.StoreWrapper
Returns the cash desk of the given index.
getGeneratedProduct(int) - Method in class org.cocome.tradingsystem.systests.util.ProductGenerator
Returns the product generated when i products had been generated already.
getGeneratedStockItem(int) - Method in class org.cocome.tradingsystem.systests.util.StockGenerator
Returns the stock item generated when i stock items had been generated already.
getInstance() - Static method in class org.cocome.tradingsystem.systests.TestManager
Returns the single instance of this class.
getItemLowOnStock() - Method in class org.cocome.tradingsystem.systests.scenarios.TestScenarioBase.StoreWrapper
Returns a product which is low on stock (amount <= minAmount)
getLastPrintout() - Method in interface org.cocome.tradingsystem.systests.interfaces.IPrinter
Returns the last printout produced by this printer.
getLightsDisplay() - Method in interface org.cocome.tradingsystem.systests.interfaces.ICashDesk
Returns the lights display for this cash desk.
getMaxAmount() - Method in class org.cocome.tradingsystem.systests.util.GeneratedStockItem
Returns the maximum amount of products possible to keep in stock
getMinAmount() - Method in class org.cocome.tradingsystem.systests.util.GeneratedStockItem
Returns the amount theat should be at least available in the store.
getName() - Method in class org.cocome.tradingsystem.systests.util.GeneratedProduct
Returns the name.
getNumberOfCashDesks() - Method in class org.cocome.tradingsystem.systests.scenarios.TestScenarioBase.StoreWrapper
Returns the number of cash desks for this store.
getNumberOfExpressSalesForExpressModeSwitch() - Method in interface org.cocome.tradingsystem.systests.interfaces.ICashDesk
Specifies the number of express sales (sales with less then 8 itmes) needed to switch cash desk in express mode
getNumberOfProducts() - Method in class org.cocome.tradingsystem.systests.util.ProductGenerator
Returns the number of products generated so far.
getNumberOfStockItems() - Method in class org.cocome.tradingsystem.systests.util.StockGenerator
Returns the number of stock items generated so far.
getPrinter() - Method in interface org.cocome.tradingsystem.systests.interfaces.ICashDesk
Returns the printer for this cash desk.
getProduct() - Method in class org.cocome.tradingsystem.systests.util.GeneratedProduct
Returns the product.
getProduct() - Method in class org.cocome.tradingsystem.systests.util.GeneratedStockItem
Returns the product this item is from.
getProductReadyForSale() - Method in class org.cocome.tradingsystem.systests.scenarios.TestScenarioBase.StoreWrapper
Returns a product which is ready for sale (amount in stock > 0)
getPurchasePrice() - Method in class org.cocome.tradingsystem.systests.util.GeneratedProduct
Returns the purchase price in cents.
getSalesPrice() - Method in class org.cocome.tradingsystem.systests.util.GeneratedStockItem
Returns the sales price in cents.
getStockGenerator() - Method in class org.cocome.tradingsystem.systests.scenarios.TestScenarioBase.StoreWrapper
Returns the stock generator used for generator stock items.
getStorePC() - Method in class org.cocome.tradingsystem.systests.scenarios.TestScenarioBase.StoreWrapper
Returns the store PC for the store.
getUnusedBarcode() - Method in class org.cocome.tradingsystem.systests.util.ProductGenerator
Returns a new barcode which is not already used for any product.
getUserDisplay() - Method in interface org.cocome.tradingsystem.systests.interfaces.ICashDesk
Returns the user display for this cash desk.

H

handleCashPayment() - Method in class org.cocome.tradingsystem.systests.scenarios.ProcessSaleBase
Executs actions of handling cash payment.
handleCreditCardPayment() - Method in class org.cocome.tradingsystem.systests.scenarios.ProcessSaleCreditCardTest
Executes actions for credit card payment.
handlePayment() - Method in class org.cocome.tradingsystem.systests.scenarios.ProcessSaleCreditCardFailTest
Executes actions for credit card payment.

I

IBank - Interface in org.cocome.tradingsystem.systests.interfaces
This is the interface used for a bank.
IBarcodeScanner - Interface in org.cocome.tradingsystem.systests.interfaces
Interface of the barcode scanner which is used to read the barcode of a product and send it to the cash desk system.
ICardReader - Interface in org.cocome.tradingsystem.systests.interfaces
The interface for the card reader used to get credit card information and enter the card pin.
ICashBox - Interface in org.cocome.tradingsystem.systests.interfaces
Interface of the cashbox consisting of a "box" containing the money and some keys allowing user input.
ICashDesk - Interface in org.cocome.tradingsystem.systests.interfaces
The main interface of a single cash desk.
IEnterprise - Interface in org.cocome.tradingsystem.systests.interfaces
Interface of the entire enterprise.
ILightsDisplay - Interface in org.cocome.tradingsystem.systests.interfaces
Interface for the lights display at a cash desk.
initializeCashDesk(int, int) - Method in class org.cocome.tradingsystem.systests.scenarios.ProcessSaleBase
Executes actions for initializing cash desk when a customer arrives there.
initializeSystem() - Method in interface org.cocome.tradingsystem.systests.interfaces.ITestDriver
This is the first method called before any other method of the test driver is called.
insertStockItem(IProduct, int, int, int) - Method in interface org.cocome.tradingsystem.systests.interfaces.IStorePC
Insert a new item into the stock of this store.
instance - Static variable in class org.cocome.tradingsystem.systests.TestManager
The only instance of this singleton.
IOrder - Interface in org.cocome.tradingsystem.systests.interfaces
Interface for an order.
IPrinter - Interface in org.cocome.tradingsystem.systests.interfaces
Interface of the printer which is used to print receipts.
IProduct - Interface in org.cocome.tradingsystem.systests.interfaces
Interface for a single product.
isExpressModeLightOn() - Method in interface org.cocome.tradingsystem.systests.interfaces.ILightsDisplay
Returns true, if the express mode light is on
isMessageForCreditCardNotPossibleShown() - Method in interface org.cocome.tradingsystem.systests.interfaces.IUserDisplay
Determines if the display currently shows the apropriate message to indicate payment by credit card is not possible.
isMessageForCreditCardPaymentSuccessfulShown() - Method in interface org.cocome.tradingsystem.systests.interfaces.IUserDisplay
Determines if the display currently shows the apropriate message to indicate payment by credit card was successful.
isMessageForCreditCardValidationFailedShown() - Method in interface org.cocome.tradingsystem.systests.interfaces.IUserDisplay
Determines if the display currently shows the apropriate message to indicate a failed validation of a credit card.
isMessageForExpressModeShown() - Method in interface org.cocome.tradingsystem.systests.interfaces.IUserDisplay
Determines if the display currently shows the aporpriate message to indicate express mode.
isMessageForInvalidBarcodeShown() - Method in interface org.cocome.tradingsystem.systests.interfaces.IUserDisplay
Determines if the display currently shows the apropriate message to indicate scan of an invalid / unkown barcode; returns false otherwise
isNoCreditCardLightOn() - Method in interface org.cocome.tradingsystem.systests.interfaces.ILightsDisplay
Returns ture, if the no credit card light is on
isPriceShown(int) - Method in interface org.cocome.tradingsystem.systests.interfaces.IUserDisplay
Determines if the display currently shows the expected price of a product, returns false if not.
isProductNameShown(String) - Method in interface org.cocome.tradingsystem.systests.interfaces.IUserDisplay
Determines if the display currently shows the expected name of a product, returns false if not.
IStorePC - Interface in org.cocome.tradingsystem.systests.interfaces
Interface of the store PC.
ITestDriver - Interface in org.cocome.tradingsystem.systests.interfaces
This is the central interface for the glue code as it is the entry point for all tests.
IUpdateReceiver - Interface in org.cocome.tradingsystem.systests.interfaces
Interface for devices which receive updates from the system.
IUserDisplay - Interface in org.cocome.tradingsystem.systests.interfaces
Interface of the display visible to the user displaying product information and the running total.

L

loadClass() - Method in class org.cocome.tradingsystem.systests.TestManager
Loads the class for the test driver later used to construct test driver instances.
loadProperties() - Method in class org.cocome.tradingsystem.systests.TestManager
Locate and load the properties file.

M

ManageExpressCheckoutBase - Class in org.cocome.tradingsystem.systests.scenarios
This is an abstract base class for specifiying test scenarios which should be executed in the express sales mode.
ManageExpressCheckoutBase() - Constructor for class org.cocome.tradingsystem.systests.scenarios.ManageExpressCheckoutBase
 
ManageExpressCheckoutTest - Class in org.cocome.tradingsystem.systests.scenarios
This test covers use case 2 (ManageExpressCheckout).
ManageExpressCheckoutTest() - Constructor for class org.cocome.tradingsystem.systests.scenarios.ManageExpressCheckoutTest
 
manuallyEnableCreditCardReader() - Method in interface org.cocome.tradingsystem.systests.interfaces.ICashBox
Manually enable the credit card reader to be able to take credit card payment while in expressmode
maxAmount - Variable in class org.cocome.tradingsystem.systests.util.GeneratedStockItem
The amount theat could be at maximum in the store.
MAXIMUM_ITEMS_AT_EXPRESS_SALE - Static variable in class org.cocome.tradingsystem.systests.scenarios.ManageExpressCheckoutBase
The maximum number of items allowed in an express sale.
minAmount - Variable in class org.cocome.tradingsystem.systests.util.GeneratedStockItem
The amount theat should be at least available in the store.

N

name - Variable in class org.cocome.tradingsystem.systests.util.GeneratedProduct
The name of the product.
NUM_PROCESSES - Static variable in class org.cocome.tradingsystem.systests.scenarios.ProcessSaleConcurrentTest
Number of concurrent sales processes.
NUM_SOLD_ITEMS - Static variable in class org.cocome.tradingsystem.systests.scenarios.ProcessSaleBase
The number of items sold for this test case.

O

OrderAndReceiveProductsTest - Class in org.cocome.tradingsystem.systests.scenarios
This test covers use cases 3 and 5.
OrderAndReceiveProductsTest() - Constructor for class org.cocome.tradingsystem.systests.scenarios.OrderAndReceiveProductsTest
 
org.cocome.tradingsystem.systests - package org.cocome.tradingsystem.systests
This package mainly acts as a super package for the CoCoME trading system tests.
org.cocome.tradingsystem.systests.interfaces - package org.cocome.tradingsystem.systests.interfaces
All interfaces that have to be implemented by a test driver (or glue code).
org.cocome.tradingsystem.systests.scenarios - package org.cocome.tradingsystem.systests.scenarios
This package contains the test scenarios for the trading system.
org.cocome.tradingsystem.systests.util - package org.cocome.tradingsystem.systests.util
Support classes for generating products and stock items.

P

pathPrefixes - Static variable in class org.cocome.tradingsystem.systests.TestManager
The search path for the property file.
performExpressSale() - Method in class org.cocome.tradingsystem.systests.scenarios.ManageExpressCheckoutBase
The methods performs a single sale with the maximum possible number of items for a express sale.
priceSum - Variable in class org.cocome.tradingsystem.systests.scenarios.ProcessSaleBase
Holds the sum to pay
ProcessSaleBase - Class in org.cocome.tradingsystem.systests.scenarios
This abstract class holds basic operations needed for a purchase and its variants as described in use case 1.
ProcessSaleBase() - Constructor for class org.cocome.tradingsystem.systests.scenarios.ProcessSaleBase
 
ProcessSaleCashTest - Class in org.cocome.tradingsystem.systests.scenarios
This test covers use case 1 (ProcessSale) for cash payment without any exceptions.
ProcessSaleCashTest() - Constructor for class org.cocome.tradingsystem.systests.scenarios.ProcessSaleCashTest
 
ProcessSaleConcurrentTest - Class in org.cocome.tradingsystem.systests.scenarios
This test covers use case 1 for multiple cash desks in parallel.
ProcessSaleConcurrentTest() - Constructor for class org.cocome.tradingsystem.systests.scenarios.ProcessSaleConcurrentTest
 
ProcessSaleCreditCardFailTest - Class in org.cocome.tradingsystem.systests.scenarios
This test covers use case 1 (process sale) with exception in step 5.2 (credit card validation fails)
ProcessSaleCreditCardFailTest() - Constructor for class org.cocome.tradingsystem.systests.scenarios.ProcessSaleCreditCardFailTest
 
ProcessSaleCreditCardTest - Class in org.cocome.tradingsystem.systests.scenarios
This test covers use case 1 (ProcessSale) for credit card payment without any exceptions.
ProcessSaleCreditCardTest() - Constructor for class org.cocome.tradingsystem.systests.scenarios.ProcessSaleCreditCardTest
 
ProcessSaleInvalidItemIdTest - Class in org.cocome.tradingsystem.systests.scenarios
This test covers use case 1 (ProcessSale) with an invalid item id entered (excepetion in step 3).
ProcessSaleInvalidItemIdTest() - Constructor for class org.cocome.tradingsystem.systests.scenarios.ProcessSaleInvalidItemIdTest
 
product - Variable in class org.cocome.tradingsystem.systests.util.GeneratedProduct
The product itself.
product - Variable in class org.cocome.tradingsystem.systests.util.GeneratedStockItem
The product this item is from.
ProductExchangeAmongStoresTest - Class in org.cocome.tradingsystem.systests.scenarios
This test case covers use case 8 - prodcut exchange among stores
ProductExchangeAmongStoresTest() - Constructor for class org.cocome.tradingsystem.systests.scenarios.ProductExchangeAmongStoresTest
 
productGenerator - Variable in class org.cocome.tradingsystem.systests.scenarios.TestScenarioBase
Generator used for adding new products.
ProductGenerator - Class in org.cocome.tradingsystem.systests.util
This class is used to generate random but reproducable products.
ProductGenerator(long, IEnterprise) - Constructor for class org.cocome.tradingsystem.systests.util.ProductGenerator
Construct a new product generator.
productGenerator - Variable in class org.cocome.tradingsystem.systests.util.StockGenerator
The product generator containing all products we may refer to.
productIndex - Variable in class org.cocome.tradingsystem.systests.scenarios.ProductExchangeAmongStoresTest
 
products - Variable in class org.cocome.tradingsystem.systests.scenarios.ProcessSaleBase
The list of products which where bought
properties - Variable in class org.cocome.tradingsystem.systests.TestManager
The contents of the properties file used to control system tests.
propertiesFile - Static variable in class org.cocome.tradingsystem.systests.TestManager
The name of the file containing the properties controlling system tests.
purchase() - Method in class org.cocome.tradingsystem.systests.scenarios.ProcessSaleBase
Executes a standard purchase process at a cash desk with no exceptions.
purchasePrice - Variable in class org.cocome.tradingsystem.systests.util.GeneratedProduct
The purchase price of the product in cents.
putCashDeskInExpressMode() - Method in class org.cocome.tradingsystem.systests.scenarios.ManageExpressCheckoutBase
Executes some express sales to put cash desk in express mode.

R

rng - Variable in class org.cocome.tradingsystem.systests.scenarios.TestScenarioBase.StoreWrapper
 
rng - Variable in class org.cocome.tradingsystem.systests.util.ProductGenerator
The random number generator used.
rng - Variable in class org.cocome.tradingsystem.systests.util.StockGenerator
The random number generator used.
rollInOrder(IOrder) - Method in interface org.cocome.tradingsystem.systests.interfaces.IStorePC
Indicates that all products of this order have been received, so they should be added to the current stock.

S

salesPrice - Variable in class org.cocome.tradingsystem.systests.util.GeneratedStockItem
The sales price in cents.
seedRng - Variable in class org.cocome.tradingsystem.systests.scenarios.TestScenarioBase
Random number generator used to generate seeds for other RNGs.
sendBarcode(int) - Method in interface org.cocome.tradingsystem.systests.interfaces.IBarcodeScanner
Sends the specified barcode to the cash desk system.
setCashboxStatus(boolean) - Method in interface org.cocome.tradingsystem.systests.interfaces.ICashBox
Returns the current status of the cashbox to the system.
setUp() - Method in class org.cocome.tradingsystem.systests.scenarios.ProcessSaleBase
Setup only a single store with two cash desks.
setUp() - Method in class org.cocome.tradingsystem.systests.scenarios.ProductExchangeAmongStoresTest
 
setUp() - Method in class org.cocome.tradingsystem.systests.scenarios.TestScenarioBase
shutdownSystem() - Method in interface org.cocome.tradingsystem.systests.interfaces.ITestDriver
Releases all ressources and stops the system.
startCashPayment() - Method in interface org.cocome.tradingsystem.systests.interfaces.ICashBox
Corresponds to pressing the "cash payment" button.
startCreditCardPayment() - Method in interface org.cocome.tradingsystem.systests.interfaces.ICashBox
Corresponds to pressing the "credit card payment" button.
startNewSale() - Method in interface org.cocome.tradingsystem.systests.interfaces.ICashBox
Corresponds to pressing the "new sale" button.
startNewSale() - Method in class org.cocome.tradingsystem.systests.scenarios.ProcessSaleBase
Executes actions for starting a new sale with a default number of items.
startNewSale(int) - Method in class org.cocome.tradingsystem.systests.scenarios.ProcessSaleBase
Executes actions for starting a new sale.
stockGenerator - Variable in class org.cocome.tradingsystem.systests.scenarios.TestScenarioBase.StoreWrapper
The stock generator used for generator stock items.
StockGenerator - Class in org.cocome.tradingsystem.systests.util
This class is used to generate (reproducably) random stock items.
StockGenerator(long, IStorePC, ProductGenerator) - Constructor for class org.cocome.tradingsystem.systests.util.StockGenerator
Construct a new stock generator.
store - Variable in class org.cocome.tradingsystem.systests.scenarios.ProcessSaleBase
The store used for this sale
storePC - Variable in class org.cocome.tradingsystem.systests.scenarios.TestScenarioBase.StoreWrapper
The store PC for the store.
storePC - Variable in class org.cocome.tradingsystem.systests.util.StockGenerator
The storePC used for adding stock.
stores - Variable in class org.cocome.tradingsystem.systests.scenarios.TestScenarioBase
The list of stores.

T

tearDown() - Method in class org.cocome.tradingsystem.systests.scenarios.TestScenarioBase
testDriver - Variable in class org.cocome.tradingsystem.systests.scenarios.TestScenarioBase
The test driver used for this test.
testDriverClass - Variable in class org.cocome.tradingsystem.systests.TestManager
The class of the test driver used.
testDriverClassKey - Static variable in class org.cocome.tradingsystem.systests.TestManager
The name of the key giving the class name for the test driver.
TestManager - Class in org.cocome.tradingsystem.systests
This is a factory for the test driver.
TestManager() - Constructor for class org.cocome.tradingsystem.systests.TestManager
Creates a new test manager class.
TestManagerException - Exception in org.cocome.tradingsystem.systests
This class is used to signal problems with the test manager and its setup.
TestManagerException(String) - Constructor for exception org.cocome.tradingsystem.systests.TestManagerException
Create a new exception.
TestManagerException(String, Throwable) - Constructor for exception org.cocome.tradingsystem.systests.TestManagerException
Create a new exception.
testScenario() - Method in class org.cocome.tradingsystem.systests.scenarios.ManageExpressCheckoutBase
Executes the test scenario.
testScenario() - Method in class org.cocome.tradingsystem.systests.scenarios.ManageExpressCheckoutTest
Executes the test scenario.
testScenario() - Method in class org.cocome.tradingsystem.systests.scenarios.OrderAndReceiveProductsTest
Execute the test case.
testScenario() - Method in class org.cocome.tradingsystem.systests.scenarios.ProcessSaleCashTest
Execute the test scenario.
testScenario() - Method in class org.cocome.tradingsystem.systests.scenarios.ProcessSaleConcurrentTest
Execute the test scenario.
testScenario() - Method in class org.cocome.tradingsystem.systests.scenarios.ProcessSaleCreditCardFailTest
Execute the test scenario.
testScenario() - Method in class org.cocome.tradingsystem.systests.scenarios.ProcessSaleCreditCardTest
Executes the test scenario.
testScenario() - Method in class org.cocome.tradingsystem.systests.scenarios.ProcessSaleInvalidItemIdTest
Executes the test scenario.
testScenario() - Method in class org.cocome.tradingsystem.systests.scenarios.ProductExchangeAmongStoresTest
Execute the test scenario.
TestScenarioBase - Class in org.cocome.tradingsystem.systests.scenarios
This is the base class for all test scenarios.
TestScenarioBase() - Constructor for class org.cocome.tradingsystem.systests.scenarios.TestScenarioBase
 
TestScenarioBase.StoreWrapper - Class in org.cocome.tradingsystem.systests.scenarios
Class holding a store and some management information.
TestScenarioBase.StoreWrapper(IStorePC) - Constructor for class org.cocome.tradingsystem.systests.scenarios.TestScenarioBase.StoreWrapper
Creates a new instance.
tryDeactivatedCreditCardPayment() - Method in class org.cocome.tradingsystem.systests.scenarios.ManageExpressCheckoutTest
Executes actions to confirm credit card payment is inactive

U

updateInventory() - Method in class org.cocome.tradingsystem.systests.scenarios.ProcessSaleBase
Executes actions after reciept of payment.
usedBarcodes - Variable in class org.cocome.tradingsystem.systests.util.ProductGenerator
The set of used barcodes to avoid repetition.
usedNames - Variable in class org.cocome.tradingsystem.systests.util.ProductGenerator
The set of used names to avoid repetition.

W

waitForUpdate(int) - Method in interface org.cocome.tradingsystem.systests.interfaces.IUpdateReceiver
Wait until the device gets updated (e.g., via a message).
wasOpenSignalSent() - Method in interface org.cocome.tradingsystem.systests.interfaces.ICashBox
Returns whether the open signal for the cashbox has been sent (and not yet been read).

A B C D E F G H I L M N O P R S T U W
CoCoME System Tests

CoCoME System Tests - 0.1