Class ReadOnlyConditionsHelperTest
java.lang.Object
de.hybris.platform.testframework.HybrisJUnit4Test
de.hybris.platform.servicelayer.ServicelayerBaseTest
de.hybris.platform.jalo.flexiblesearch.AbstractSwitchingDataSourceTest
de.hybris.platform.jalo.flexiblesearch.internal.ReadOnlyConditionsHelperTest
- All Implemented Interfaces:
JaloSessionHolder
-
Field Summary
Fields inherited from class de.hybris.platform.jalo.flexiblesearch.AbstractSwitchingDataSourceTest
tenantFields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class de.hybris.platform.jalo.flexiblesearch.AbstractSwitchingDataSourceTest
doWithActivatedAlternativeDataSource, doWithActivatedAlternativeDataSource, doWithActivatedSlaveDataSource, doWithActivatedSlaveDataSourceMethods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getApplicationContext, getBeanName, prepareApplicationContextAndSessionMethods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
Constructor Details
-
ReadOnlyConditionsHelperTest
public ReadOnlyConditionsHelperTest()
-
-
Method Details
-
setUp
- Overrides:
setUpin classAbstractSwitchingDataSourceTest- Throws:
Exception
-
tearDown
public void tearDown()- Overrides:
tearDownin classAbstractSwitchingDataSourceTest
-
shouldNotReturnReadOnlyDataSourceIfConfigurationIsEmpty
public void shouldNotReturnReadOnlyDataSourceIfConfigurationIsEmpty() -
shouldNotReturnReadOnlyDataSourceIfConfiguredDataSourceDoesNotExist
public void shouldNotReturnReadOnlyDataSourceIfConfiguredDataSourceDoesNotExist() -
shouldReturnReadOnlyDataSourceIfConfiguredToExistingSlaveDataSource
public void shouldReturnReadOnlyDataSourceIfConfiguredToExistingSlaveDataSource() -
shouldAllowUsingReadOnlyDataSourceWhenArgumentInSessionContextIsTrueAsString
public void shouldAllowUsingReadOnlyDataSourceWhenArgumentInSessionContextIsTrueAsString() -
shouldAllowUsingReadOnlyDataSourceWhenArgumentInSessionContextIsTrue
public void shouldAllowUsingReadOnlyDataSourceWhenArgumentInSessionContextIsTrue() -
shouldNotAllowUsingReadOnlyDataSourceWhenArgumentInSessionContextIsFalse
public void shouldNotAllowUsingReadOnlyDataSourceWhenArgumentInSessionContextIsFalse() -
shouldNotAllowUsingReadOnlyDataSourceWhenArgumentInSessionContextIsNotAValidString
public void shouldNotAllowUsingReadOnlyDataSourceWhenArgumentInSessionContextIsNotAValidString() -
shouldNotAllowUsingReadOnlyDataSourceWhenArgumentInSessionContextIsNotAValidObject
public void shouldNotAllowUsingReadOnlyDataSourceWhenArgumentInSessionContextIsNotAValidObject() -
shouldNotAllowUsingReadOnlyDataSourceWhenNoArgumentInSessionContext
public void shouldNotAllowUsingReadOnlyDataSourceWhenNoArgumentInSessionContext() -
shouldNotAllowUsingReadOnlyDataSourceWhenWithinActiveTx
- Throws:
Exception
-
shouldNotAllowUsingReadOnlyDataSourceWhenAlternativeDataSourceIsActive
public void shouldNotAllowUsingReadOnlyDataSourceWhenAlternativeDataSourceIsActive() -
shouldNotAllowUsingReadOnlyDataSourceWhenSlaveDataSourceIsActive
public void shouldNotAllowUsingReadOnlyDataSourceWhenSlaveDataSourceIsActive() -
shouldAllowUsingReadOnlyDataSourceWhenAtLeastOneHintIsTrueAndNoFalseHints
public void shouldAllowUsingReadOnlyDataSourceWhenAtLeastOneHintIsTrueAndNoFalseHints() -
shouldNotAllowUsingReadOnlyDataSourceWhenNoTrueHints
public void shouldNotAllowUsingReadOnlyDataSourceWhenNoTrueHints() -
shouldAllowUsingReadOnlyDataSourceWhenNoTrueHintsAndArgumentInSessionIsTrue
public void shouldAllowUsingReadOnlyDataSourceWhenNoTrueHintsAndArgumentInSessionIsTrue() -
shouldNotAllowUsingReadOnlyDataSourceWhenAtLeastOneFalseHint
public void shouldNotAllowUsingReadOnlyDataSourceWhenAtLeastOneFalseHint() -
shouldNotAllowUsingReadOnlyDataSourceWhenAtLeastOneFalseHintAndArgumentInSessionIsTrue
public void shouldNotAllowUsingReadOnlyDataSourceWhenAtLeastOneFalseHintAndArgumentInSessionIsTrue() -
shouldAllowUsingReadOnlyDataSourceWhenCategoryIsInvalidArgumentInSessionIsTrue
public void shouldAllowUsingReadOnlyDataSourceWhenCategoryIsInvalidArgumentInSessionIsTrue() -
shouldNotAllowUsingReadOnlyDataSourceWhenCategoryIsInvalidArgumentInSessionIsFalse
public void shouldNotAllowUsingReadOnlyDataSourceWhenCategoryIsInvalidArgumentInSessionIsFalse() -
shouldNotAllowUsingReadOnlyDataSourceWhenCategoryIsInvalidArgumentInSessionIsNull
public void shouldNotAllowUsingReadOnlyDataSourceWhenCategoryIsInvalidArgumentInSessionIsNull() -
shouldNotAllowUsingReadOnlyDataSourceWhenHintsAreTrueButSessionContextIsFalse
public void shouldNotAllowUsingReadOnlyDataSourceWhenHintsAreTrueButSessionContextIsFalse() -
shouldAllowUsingReadOnlyDataSourceWhenHintsAreTrueButSessionContextIsInvalid
public void shouldAllowUsingReadOnlyDataSourceWhenHintsAreTrueButSessionContextIsInvalid() -
shouldNotUseReadOnlyDataSourceIfItHasDifferentDatabaseProvider
public void shouldNotUseReadOnlyDataSourceIfItHasDifferentDatabaseProvider()
-