Package org.openbravo.test.xml
Class EntityXMLImportTestSingle
- java.lang.Object
-
- org.openbravo.test.base.OBBaseTest
-
- org.openbravo.test.xml.XMLBaseTest
-
- org.openbravo.test.xml.EntityXMLImportTestSingle
-
public class EntityXMLImportTestSingle extends XMLBaseTest
Test import of data, different scenarios in which data is re-imported (no update should occur), or small changes are made and an update should occur.- 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 EntityXMLImportTestSingle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
test0ImportNoUpdate()
Test an import of data in its own organization/client.void
test1Greeting()
ExportGreeting
from one org and import in the othervoid
test2Greeting()
Test that a repeat of the action of @ #test1Greeting()} is done without updating/inserting an object.void
test3Greeting()
Tests reads theGreeting
objects from the QA_TEST_ORG_ID, changes something and then imports again.void
test4Greeting()
Remove the test data from QA_TEST_ORG_ID.void
test5Greeting()
Checks that the testdata was indeed removed.void
test6Greeting()
Same test as before exporting and then importing in same organization.-
Methods inherited from class org.openbravo.test.xml.XMLBaseTest
cleanRefDataLoaded, compare, getFileContent, getList, getList, getXML, 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
-
test0ImportNoUpdate
public void test0ImportNoUpdate()
Test an import of data in its own organization/client. This should not result in an update or insert.
-
test1Greeting
public void test1Greeting()
ExportGreeting
from one org and import in the other
-
test2Greeting
public void test2Greeting()
Test that a repeat of the action of @ #test1Greeting()} is done without updating/inserting an object.
-
test3Greeting
public void test3Greeting()
Tests reads theGreeting
objects from the QA_TEST_ORG_ID, changes something and then imports again. The result should be twenty updates.
-
test4Greeting
public void test4Greeting()
Remove the test data from QA_TEST_ORG_ID.
-
test5Greeting
public void test5Greeting()
Checks that the testdata was indeed removed.
-
test6Greeting
public void test6Greeting()
Same test as before exporting and then importing in same organization.
-
-