public abstract class AbstractProcessDemoTest
extends ServicelayerTest
Modifier and Type | Field and Description |
---|---|
protected BusinessProcessService |
businessProcessService |
protected CartService |
cartService |
protected CatalogService |
catalogService |
protected I18NService |
i18nService |
protected ModelService |
modelService |
protected OrderService |
orderService |
protected PaymentService |
paymentService |
protected ProductService |
productService |
protected UnitService |
unitService |
protected UserService |
userService |
Constructor and Description |
---|
AbstractProcessDemoTest() |
Modifier and Type | Method and Description |
---|---|
protected BusinessProcessModel |
createProcess(OrderModel order) |
protected StockLevelModel |
createStockLevel(ProductModel product,
WarehouseModel warehouse,
int available) |
protected StockLevelModel |
createStockLevel(ProductModel product,
WarehouseModel warehouse,
int available,
int overSelling,
int reserved,
InStockStatus status,
int maxStockLevelHistoryCount,
boolean treatNegativeAsZero) |
protected StockLevelHistoryEntryModel |
createStockLevelHistoryEntry(StockLevelModel stockLevel,
int actual,
int reserved,
StockLevelUpdateType updateType,
java.lang.String comment) |
protected void |
setCurrentCatalog() |
void |
setUp() |
protected void |
setupCatalog() |
protected void |
setupUser() |
protected void |
setupUser(java.lang.String uId,
java.lang.String name) |
protected BusinessProcessService businessProcessService
protected CatalogService catalogService
protected CartService cartService
protected ProductService productService
protected OrderService orderService
protected UserService userService
protected ModelService modelService
protected I18NService i18nService
protected PaymentService paymentService
protected UnitService unitService
public void setUp()
protected void setupCatalog()
protected void setCurrentCatalog()
protected void setupUser(java.lang.String uId, java.lang.String name)
protected void setupUser()
protected BusinessProcessModel createProcess(OrderModel order)
protected StockLevelModel createStockLevel(ProductModel product, WarehouseModel warehouse, int available)
protected StockLevelModel createStockLevel(ProductModel product, WarehouseModel warehouse, int available, int overSelling, int reserved, InStockStatus status, int maxStockLevelHistoryCount, boolean treatNegativeAsZero)
protected StockLevelHistoryEntryModel createStockLevelHistoryEntry(StockLevelModel stockLevel, int actual, int reserved, StockLevelUpdateType updateType, java.lang.String comment)