public class EntityXMLImportTestReference extends XMLBaseTest
Warehouse and its referenced
information. A warehouse refers to a Location, the export exports both the warehouses as
their locations. Then the tests check that both are inserted and then when the warehouses are
reimported that the locations previously imported are re-used. Note that this test also tests the
use of the ReferenceDataStore which is used to map id's used in the xml to the eventual
id of the imported object in the database.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 and Description |
|---|
EntityXMLImportTestReference() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUpE()
This before method is named setUpE() to avoid overwriting the super setUp method that is invoke
automatically before this one.
|
void |
test1Warehouse()
Exports
Warehouse objects from client/org OBBaseTest.TEST_CLIENT_ID and imports them in
OBBaseTest.QA_TEST_CLIENT_ID. |
void |
test2Warehouse()
Remove the imported
Warehouse objects from the OBBaseTest.QA_TEST_CLIENT_ID client. |
void |
test3Warehouse()
Repeat the action of importing the
Warehouse objects from OBBaseTest.TEST_CLIENT_ID. |
void |
test4Warehouse()
Clean up by removing both the imported
Warehouse and Location objects from
OBBaseTest.QA_TEST_CLIENT_ID client. |
cleanRefDataLoaded, compare, getFileContent, getList, getList, getXML, getXML, getXMLaddReadWriteAccess, commitTransaction, count, getConnectionProvider, getOneInstance, getRandomUser, getTestLogAppender, initializeDalLayer, isErrorOccured, reportException, rollback, setDalUp, setSystemAdministratorContext, setTestAdminContext, setTestLogAppenderLevel, setTestUserContext, setUp, setUserContext, testDonepublic void setUpE()
throws Exception
Exceptionpublic void test1Warehouse()
Warehouse objects from client/org OBBaseTest.TEST_CLIENT_ID and imports them in
OBBaseTest.QA_TEST_CLIENT_ID. Also the referenced Location objects are imported.public void test2Warehouse()
Warehouse objects from the OBBaseTest.QA_TEST_CLIENT_ID client. The
imported Location objects should still remain.public void test3Warehouse()
Warehouse objects from OBBaseTest.TEST_CLIENT_ID. Now
the Location objects are also exported but not imported as they already exist in
OBBaseTest.QA_TEST_CLIENT_ID.public void test4Warehouse()
Warehouse and Location objects from
OBBaseTest.QA_TEST_CLIENT_ID client.