Package org.openbravo.test.xml
Class EntityXMLImportTestBusinessObject
- java.lang.Object
-
- org.openbravo.test.base.OBBaseTest
-
- org.openbravo.test.xml.XMLBaseTest
-
- org.openbravo.test.xml.EntityXMLImportTestBusinessObject
-
public class EntityXMLImportTestBusinessObject extends XMLBaseTest
Test import of data with a business object (PaymentTerm
andPaymentTermLine
), adding and removing childs.- Author:
- mtaal
-
-
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 EntityXMLImportTestBusinessObject()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <T extends BaseOBObject>
StringgetXML(List<T> pts)
void
testAPaymentTerm()
Sets up the test data, creates a first of Payment Terms.void
testBPaymentTerm()
Export the Payment Terms from one client and import into another client.void
testCPaymentTerm()
Execute the same test as intestBPaymentTerm()
, as it is repeated and no data has changed no updates should take place.void
testDPaymentTerm()
Now do the same as intestCPaymentTerm()
only now with some small changes in the xml, so that some objects are updated.void
testEPaymentTerm()
Test removal of a PaymentTermLine from a PaymentTerm in the xml, then import.void
testFPaymentTerm()
Tests that the previous testtestEPaymentTerm()
did not really remove a line.void
testGPaymentTerm()
Add a PaymentTermLine in the xml and import it, there should be an extra line then.void
testHPaymentTerm()
Tests thattestGPaymentTerm()
was successful.void
testZPaymentTerm()
Remove the testdata.-
Methods inherited from class org.openbravo.test.xml.XMLBaseTest
cleanRefDataLoaded, compare, getFileContent, getList, getList, getXML, getXML
-
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, setUp, setUserContext, shouldMockServletContext, staticInitializeDalLayer, testDone
-
-
-
-
Method Detail
-
testAPaymentTerm
public void testAPaymentTerm()
Sets up the test data, creates a first of Payment Terms.
-
testBPaymentTerm
public void testBPaymentTerm()
Export the Payment Terms from one client and import into another client.
-
testCPaymentTerm
public void testCPaymentTerm()
Execute the same test as intestBPaymentTerm()
, as it is repeated and no data has changed no updates should take place.
-
testDPaymentTerm
public void testDPaymentTerm()
Now do the same as intestCPaymentTerm()
only now with some small changes in the xml, so that some objects are updated.
-
testEPaymentTerm
public void testEPaymentTerm()
Test removal of a PaymentTermLine from a PaymentTerm in the xml, then import. After importing the PaymentTermLine should have gone.
-
testFPaymentTerm
public void testFPaymentTerm()
Tests that the previous testtestEPaymentTerm()
did not really remove a line.
-
testGPaymentTerm
public void testGPaymentTerm()
Add a PaymentTermLine in the xml and import it, there should be an extra line then.
-
testHPaymentTerm
public void testHPaymentTerm()
Tests thattestGPaymentTerm()
was successful.
-
testZPaymentTerm
public void testZPaymentTerm()
Remove the testdata.
-
getXML
protected <T extends BaseOBObject> String getXML(List<T> pts)
- Overrides:
getXML
in classXMLBaseTest
-
-