Package org.openbravo.test.views
Class ConfigurableTransactionalFilters
- java.lang.Object
-
- org.openbravo.test.base.OBBaseTest
-
- org.openbravo.base.weld.test.WeldBaseTest
-
- org.openbravo.test.views.ViewGenerationTest
-
- org.openbravo.test.views.ConfigurableTransactionalFilters
-
public class ConfigurableTransactionalFilters extends ViewGenerationTest
Test case intended to check the grid configuration that allows to enable/disable the transactional filters.
-
-
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 ConfigurableTransactionalFilters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
disableTransactionalFilters()
Having a grid configuration at System level that disables the transactional filters, the transactional filter definition must not be found within the view definition of the window.void
enableTransactionalFilters()
Having a grid configuration at System level that enables the transactional filters, the transactional filter definition must be found within the view definition of the window.void
shouldExecuteOnlyIfThereIsNoGridConfigAtSystemLevel()
void
transactionalFiltersAreEnabledByDefault()
The transactional filters are enabled by default.-
Methods inherited from class org.openbravo.test.views.ViewGenerationTest
generateView, setRequestContext
-
Methods inherited from class org.openbravo.base.weld.test.WeldBaseTest
createTestArchive, getWeldComponent, resetOBInterceptors, setUp
-
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, setUserContext, shouldMockServletContext, staticInitializeDalLayer, testDone
-
-
-
-
Method Detail
-
shouldExecuteOnlyIfThereIsNoGridConfigAtSystemLevel
public void shouldExecuteOnlyIfThereIsNoGridConfigAtSystemLevel()
-
transactionalFiltersAreEnabledByDefault
public void transactionalFiltersAreEnabledByDefault() throws Exception
The transactional filters are enabled by default.- Throws:
Exception
-
enableTransactionalFilters
public void enableTransactionalFilters() throws Exception
Having a grid configuration at System level that enables the transactional filters, the transactional filter definition must be found within the view definition of the window.- Throws:
Exception
-
-