Package org.openbravo.test.security
Class AccessLevelTest
- java.lang.Object
-
- org.openbravo.test.base.OBBaseTest
-
- org.openbravo.test.security.AccessLevelTest
-
public class AccessLevelTest extends OBBaseTest
Tests/checks the accesslevel of an entity. See theAccessLevelChecker
.- Author:
- mtaal
- See Also:
AccessLevelChecker
,AccessLevel
-
-
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 AccessLevelTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testAccessLevelCO()
Tests the Client Organization access level.void
testAccessLevelOrganization()
Tests the Organization Access Level.void
testAccessLevelSC()
Tests Access Level System Client.void
testAccessLevelSystem()
Test the System access level.void
testADataAccessLevel()
Tests/checks if the current client/org of the all objects in the database is valid for the access level defined for that entity.void
testUserDataAccessLevel()
Test that the access level is tested correctly-
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
-
testUserDataAccessLevel
public void testUserDataAccessLevel()
Test that the access level is tested correctly
-
testADataAccessLevel
public void testADataAccessLevel()
Tests/checks if the current client/org of the all objects in the database is valid for the access level defined for that entity.
-
testAccessLevelCO
public void testAccessLevelCO()
Tests the Client Organization access level.
-
testAccessLevelSystem
public void testAccessLevelSystem()
Test the System access level.
-
testAccessLevelOrganization
public void testAccessLevelOrganization()
Tests the Organization Access Level.
-
testAccessLevelSC
public void testAccessLevelSC()
Tests Access Level System Client.
-
-