public class StockServiceTest extends ServicelayerTest
StockServiceimportServicejaloSession| Constructor and Description |
|---|
StockServiceTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp()
Setup of the test:
retrieves 3 products,
retrieves 3 warehouses.
|
void |
testCreateNoHistoryCreated()
Tests create stock level with no history created.
|
void |
testCreateSameStockLevel()
Tests to create the same product in the same warehouse twice.
|
void |
testCreateStockLevel()
Tests the creation of stock levels.
|
void |
testInStockStatus()
Tests the enabling and disabling of in stock function.
|
void |
testMultiReservations()
Tests stock level update of multi-reservations.
|
void |
testOutOfStock()
Tests the enabling and disabling of out of stock function.
|
void |
testProductAvailability()
Test of product availability by invoking default strategy for calculating product availability, passing
product, quantity and warehouse/store as parameters,
Test of availability date by invoking default strategy for calculating product availability, passing product,
quantity and warehouse/store as parameters (TODO),
Test of "bestOf" implementation
|
void |
testProductStockStatus()
Tests stock level status.
|
void |
testRelease()
Tests release of stock level.
|
void |
testReleaseNoHistoryCreated()
Tests release of stock level with no history created.
|
void |
testReserveNoHistoryCreated()
Tests reserve stock level with no history created.
|
void |
testSuccessfulReservations() |
void |
testTotalActualAmount()
Tests the search for all stock levels and the total actual amount.
|
void |
testUnsuccessfulReservations()
Tests an unsuccessful reservation and a successful one in sequence.
|
void |
testUpdateActualStockLevel()
Tests actual stock level update.
|
void |
testUpdateActualStockLevelNegativeAmount()
Test update actual stock level with negative amount.
|
void |
testUpdateActualStockLevelZeroAmount()
Test update actual stock level with zero amount.
|
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionestablishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionpublic void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void testCreateStockLevel()
public void testCreateSameStockLevel()
public void testTotalActualAmount()
throws BusinessException
BusinessExceptionpublic void testInStockStatus()
public void testOutOfStock()
public void testProductStockStatus()
throws BusinessException
BusinessExceptionpublic void testUpdateActualStockLevel()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdateActualStockLevelNegativeAmount()
public void testUpdateActualStockLevelZeroAmount()
public void testRelease()
throws BusinessException
BusinessExceptionpublic void testMultiReservations()
throws java.lang.Exception
java.lang.Exceptionpublic void testUnsuccessfulReservations()
throws BusinessException
BusinessExceptionpublic void testSuccessfulReservations()
throws BusinessException
BusinessExceptionpublic void testProductAvailability()
public void testCreateNoHistoryCreated()
throws java.lang.Exception
java.lang.Exceptionpublic void testReleaseNoHistoryCreated()
throws BusinessException
BusinessExceptionpublic void testReserveNoHistoryCreated()
throws java.lang.Exception
java.lang.ExceptionCopyright © 2018 SAP SE. All Rights Reserved.