Package org.openbravo.test.datasource
Class OrganizationSelectorDataSourceTest
- java.lang.Object
-
- org.openbravo.test.base.OBBaseTest
-
- org.openbravo.test.datasource.BaseDataSourceTestDal
-
- org.openbravo.test.datasource.OrganizationSelectorDataSourceTest
-
public class OrganizationSelectorDataSourceTest extends BaseDataSourceTestDal
Test to check that an Organization selector (both normal and custom query based) applies the filter based on the role's organization access, even when an organization has been selected in the field before calling to the datasource.
-
-
Field Summary
-
Fields inherited from class org.openbravo.test.datasource.BaseDataSourceTestDal
LOGIN, POST_METHOD, PWD
-
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 OrganizationSelectorDataSourceTest(boolean organizationSelected)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Collection<Object[]>
data()
void
initOBContext()
void
resetOBContext()
void
retrieveExpectedOrganizationListFromCustomQuerySelector()
void
retrieveExpectedOrganizationListFromSelector()
-
Methods inherited from class org.openbravo.test.datasource.BaseDataSourceTestDal
authenticate, changeProfile, doRequest, doRequest, doRequest, getLogin, getOpenbravoURL, getPassword, getSessionCsrfToken, logout
-
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
-
data
public static Collection<Object[]> data()
-
retrieveExpectedOrganizationListFromSelector
public void retrieveExpectedOrganizationListFromSelector() throws Exception
- Throws:
Exception
-
-