Class CreateLinesFromTest
- java.lang.Object
-
- org.openbravo.test.base.OBBaseTest
-
- org.openbravo.base.weld.test.WeldBaseTest
-
- org.openbravo.test.createlinesfrom.CreateLinesFromTest
-
public class CreateLinesFromTest extends WeldBaseTest
Tests cases to check Create Lines From Orders/Shipments/Receipts process- Author:
- Andy Armaignac
-
-
Field Summary
Fields Modifier and Type Field Description ParameterCdiTestRule<CreateLinesFromTestData>
parameterValuesRule
static List<CreateLinesFromTestData>
PARAMS
-
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 CreateLinesFromTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
after()
void
before()
void
testCreateLinesFromOrders()
Execute the test with the current data Create the Order Check order header and lines Complete the order Check order header and lines Create the Invoice Execute Create Lines From Order process Check invoice header and lines Complete the Invoice Check invoice header and linesvoid
testCreateLinesFromShipment()
Execute the test with the current data Create the Shipment Check shipment header and lines Complete the shipment Check shipment header and lines Create the Invoice Execute Create Lines From Shipment process Check invoice header and lines Complete the Invoice Check invoice header and lines-
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
-
-
-
-
Field Detail
-
parameterValuesRule
public ParameterCdiTestRule<CreateLinesFromTestData> parameterValuesRule
-
PARAMS
public static final List<CreateLinesFromTestData> PARAMS
-
-
Method Detail
-
before
public void before()
-
after
public void after()
-
testCreateLinesFromOrders
public void testCreateLinesFromOrders()
Execute the test with the current data- Create the Order
- Check order header and lines
- Complete the order
- Check order header and lines
- Create the Invoice
- Execute Create Lines From Order process
- Check invoice header and lines
- Complete the Invoice
- Check invoice header and lines
-
testCreateLinesFromShipment
public void testCreateLinesFromShipment()
Execute the test with the current data- Create the Shipment
- Check shipment header and lines
- Complete the shipment
- Check shipment header and lines
- Create the Invoice
- Execute Create Lines From Shipment process
- Check invoice header and lines
- Complete the Invoice
- Check invoice header and lines
-
-