|
CoCoME System Tests | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IStorePC
Interface of the store PC. This is the view the environment (and thus the system tests) has on the system. It is mostly used for actions on the inventory (for most implementation these will map to database calls).
Method Summary | |
---|---|
IOrder |
createOrder()
Creates a new, empty order, which can be filled with order items and executed in the ordering process. |
void |
executeOrder(IOrder order)
Execute an order, i.e., we are done with adding products to that order so it can be sent out. |
int |
getAmount(IProduct product)
Get the current amount of a product in this store. |
void |
insertStockItem(IProduct product,
int salesPrice,
int amount,
int minAmount)
Insert a new item into the stock of this store. |
void |
rollInOrder(IOrder order)
Indicates that all products of this order have been received, so they should be added to the current stock. |
Method Detail |
---|
void insertStockItem(IProduct product, int salesPrice, int amount, int minAmount) throws java.lang.Exception
product
- the product added to the store.salesPrice
- the price at which the product is sold in the store in Cent.amount
- the amount available in the store.minAmount
- the minimal amount which should be available.
java.lang.Exception
int getAmount(IProduct product) throws java.lang.Exception
product
- the product whose amount we are interested in.
java.lang.Exception
IOrder createOrder() throws java.lang.Exception
java.lang.Exception
void executeOrder(IOrder order) throws java.lang.Exception
order
- the order being executed.
java.lang.Exception
void rollInOrder(IOrder order) throws java.lang.Exception
order
- the order being delivered.
java.lang.Exception
|
CoCoME System Tests | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |