Class InventoryStatusTest
- java.lang.Object
-
- org.openbravo.test.base.OBBaseTest
-
- org.openbravo.base.weld.test.WeldBaseTest
-
- org.openbravo.test.inventoryStatus.InventoryStatusTest
-
public class InventoryStatusTest extends WeldBaseTest
-
-
Field Summary
-
Fields inherited from class org.openbravo.test.base.OBBaseTest
DOLLAR, DOLLAR_ID, EURO, EURO_ID, QA_TEST_ADMIN_USER_ID, QA_TEST_CLIENT_ID, QA_TEST_ORG_ID, TEST_BP_CATEGORY_ID, TEST_CLIENT_ID, TEST_LOCATION_ID, TEST_ORDER_ID, TEST_ORG_ID, TEST_ORG_TREE, TEST_PRODUCT_ID, TEST_ROLE_ID, TEST_US_ORG_ID, TEST_USER_ID, TEST_WAREHOUSE_ID, TEST2_USER_ID, userIds, watchFailures
-
-
Constructor Summary
Constructors Constructor Description InventoryStatusTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initialize()
void
IS001SeveralStatusChanges()
IS001IS001SeveralStatusChanges: Basic Inventory Status changes over the same Storage Bin with existing Stock, without any particular scenario Clone a Product and a Storage Bin Change Status of the Storage Bin to Available Change Status of the Storage Bin to Blocked Change Status of the Storage Bin to Available Change Status of the Storage Bin to Undefined Over Issuevoid
IS002NotPossibleToSetAvailableWhenNegativeStock()
IS002IS002NotPossibleToSetAvailableWhenNegativeStock : Test that it is not possible to change the Inventory Status of a Storage Bin from a Status that allows to go Over Issue to a Status that does not allow it, if there is negative Stock in the Storage Bin Clone Product and Storage Bin and create a Goods Shipment to create negative Stock Change Inventory Status to BackFlush, it allows it Change Inventory Status to Available, it fails because there is negative Stockvoid
IS003ACreateStockAndSetBlockedStatus()
IS003: Test that it is not possible to create a Goods Shipment for Stock that is in Blocked Inventory Status, but if the Status is changed to Available, this Goods Shipment can be completed IS003A: Clone Product and Storage Bin and create a Goods Receipt to create Stock.void
IS003BNotPossibleToCompleteShipment()
void
IS003CSetAvailableStatusAndCompleteShipment()
void
IS004ASetBinStatusToAvailable()
IS004: Test that it is not possible to complete a Goods Shipment if there is not Stock and there are no Bins that allows to go Over Issue.void
IS004BNotPossibleToCompleShipment()
void
IS004CSetBinStatusToBackflushAndCompleteShipment()
void
IS005NotPossibleToChangeStatusToBlockedIfThereAreReservations()
IS005IS005NotPossibleToChangeStatusToBlockedIfThereAreReservations: Test that it is not possible to change the Status of a Bin to a Status that is not Avilable if there are Reservations related to it.-
Methods inherited from class org.openbravo.base.weld.test.WeldBaseTest
createTestArchive, getWeldComponent, resetOBInterceptors, setUp
-
Methods inherited from class org.openbravo.test.base.OBBaseTest
addReadWriteAccess, classSetUp, commitTransaction, count, getConnectionProvider, getOneInstance, getRandomUser, getTestLogAppender, initializeDalLayer, initializeDisabledTestCases, initializeTestLogAppender, isErrorOccured, reportException, rollback, setLogStackTraces, setQAAdminContext, setSystemAdministratorContext, setTestAdminContext, setTestLogAppenderLevel, setTestUserContext, setUserContext, shouldMockServletContext, staticInitializeDalLayer, testDone
-
-
-
-
Method Detail
-
initialize
public void initialize()
-
IS001SeveralStatusChanges
public void IS001SeveralStatusChanges()
IS001IS001SeveralStatusChanges: Basic Inventory Status changes over the same Storage Bin with existing Stock, without any particular scenario- Clone a Product and a Storage Bin
- Change Status of the Storage Bin to Available
- Change Status of the Storage Bin to Blocked
- Change Status of the Storage Bin to Available
- Change Status of the Storage Bin to Undefined Over Issue
-
IS002NotPossibleToSetAvailableWhenNegativeStock
public void IS002NotPossibleToSetAvailableWhenNegativeStock()
IS002IS002NotPossibleToSetAvailableWhenNegativeStock : Test that it is not possible to change the Inventory Status of a Storage Bin from a Status that allows to go Over Issue to a Status that does not allow it, if there is negative Stock in the Storage Bin- Clone Product and Storage Bin and create a Goods Shipment to create negative Stock
- Change Inventory Status to BackFlush, it allows it
- Change Inventory Status to Available, it fails because there is negative Stock
-
IS003ACreateStockAndSetBlockedStatus
public void IS003ACreateStockAndSetBlockedStatus()
IS003: Test that it is not possible to create a Goods Shipment for Stock that is in Blocked Inventory Status, but if the Status is changed to Available, this Goods Shipment can be completed- IS003A: Clone Product and Storage Bin and create a Goods Receipt to create Stock. Change Inventory Status to Blocked
- IS003B: Try to Complete the Goods Shipment, it is not possible
- IS003C: Change the Inventory Status to Available. Complete the Goods Shipment successfully
-
IS003BNotPossibleToCompleteShipment
public void IS003BNotPossibleToCompleteShipment()
-
IS003CSetAvailableStatusAndCompleteShipment
public void IS003CSetAvailableStatusAndCompleteShipment()
-
IS004ASetBinStatusToAvailable
public void IS004ASetBinStatusToAvailable()
IS004: Test that it is not possible to complete a Goods Shipment if there is not Stock and there are no Bins that allows to go Over Issue. Change the status of one Bin to one that allows to go Over Issue and check that the Goods Shipment can be completed creating negative Stock- IS004A: Clone Product and Storage Bin and check that the Inventory Status is Available
- IS004B: Try to complete a Goods Shipment, it is not possible because there is not Stock available
- IS004C: Change Inventory Status to Backflush. Complete the Goods Shipment successfully
-
IS004BNotPossibleToCompleShipment
public void IS004BNotPossibleToCompleShipment()
-
IS004CSetBinStatusToBackflushAndCompleteShipment
public void IS004CSetBinStatusToBackflushAndCompleteShipment()
-
IS005NotPossibleToChangeStatusToBlockedIfThereAreReservations
public void IS005NotPossibleToChangeStatusToBlockedIfThereAreReservations()
IS005IS005NotPossibleToChangeStatusToBlockedIfThereAreReservations: Test that it is not possible to change the Status of a Bin to a Status that is not Avilable if there are Reservations related to it.- Clone Product and Storage Bin and create a Goods Receipt to create Stock
- Clone an existing Reservation
- Change Inventory Status to Available
- Try to change Inventory Status to Blocked and it fails because there is a related Reservation
-
-