Package org.openbravo.test.security
Class AllowedOrganizationsTest
- java.lang.Object
-
- org.openbravo.test.base.OBBaseTest
-
- org.openbravo.test.security.AllowedOrganizationsTest
-
public class AllowedOrganizationsTest extends OBBaseTest
Tests computation of natural tree of an organization. This is used to compute the readable organizations of a user.- Author:
- mtaal
- See Also:
OrganizationStructureProvider
,OBContext.getReadableOrganizations()
-
-
Field Summary
Fields Modifier and Type Field Description List<org.openbravo.test.security.AllowedOrganizationsTest.TestOrg>
expectedNaturalTree
String
testingOrgId
String
testingOrgName
-
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 AllowedOrganizationsTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
legalOrBUOrganization()
void
legalOrganization()
static Collection<Object[]>
parameters()
void
parentOrganization()
void
periodControlOrganization()
void
setOSP()
void
testOrganizationTree()
Tests valid organizations trees for different organizations.-
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
-
parameters
public static Collection<Object[]> parameters() throws IOException
- Throws:
IOException
-
setOSP
public void setOSP()
-
testOrganizationTree
public void testOrganizationTree()
Tests valid organizations trees for different organizations.
-
parentOrganization
public void parentOrganization()
-
legalOrganization
public void legalOrganization()
-
legalOrBUOrganization
public void legalOrBUOrganization()
-
periodControlOrganization
public void periodControlOrganization()
-
-