Package org.openbravo.test.xml
Class EntityXMLImportTestWarning
- java.lang.Object
-
- org.openbravo.test.base.MockableBaseTest
-
- org.openbravo.test.base.OBBaseTest
-
- org.openbravo.test.xml.XMLBaseTest
-
- org.openbravo.test.xml.EntityXMLImportTestWarning
-
public class EntityXMLImportTestWarning extends XMLBaseTest
Test if warnings are generated by the xml import.- 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_INVOICE_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 EntityXMLImportTestWarning()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testNotWritableInsertError()
Tests that an error message is given that an object is new but the user is not allowed to write it (because of access definitions).void
testNotWritableUpdate()
Test that a warning is given that an object (in this caseGreeting
is not writable because of access definitions for the user.void
testUpdatingOtherOrganizationWarning()
Tests that a warning is given that during an import, an update occured in another organization then the one passed in during the import.-
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
-
Methods inherited from class org.openbravo.test.base.MockableBaseTest
mockStatic
-
-
-
-
Method Detail
-
testNotWritableUpdate
public void testNotWritableUpdate()
Test that a warning is given that an object (in this caseGreeting
is not writable because of access definitions for the user.
-
testNotWritableInsertError
public void testNotWritableInsertError()
Tests that an error message is given that an object is new but the user is not allowed to write it (because of access definitions).
-
testUpdatingOtherOrganizationWarning
public void testUpdatingOtherOrganizationWarning()
Tests that a warning is given that during an import, an update occured in another organization then the one passed in during the import. This can happen if an object belongs in organization * (0), while the update/import is in another organization.
-
-