Class ReadOnlyConditionsHelperTest

All Implemented Interfaces:
JaloSessionHolder

@IntegrationTest public class ReadOnlyConditionsHelperTest extends AbstractSwitchingDataSourceTest
  • Constructor Details

    • ReadOnlyConditionsHelperTest

      public ReadOnlyConditionsHelperTest()
  • Method Details

    • setUp

      public void setUp() throws Exception
      Overrides:
      setUp in class AbstractSwitchingDataSourceTest
      Throws:
      Exception
    • tearDown

      public void tearDown()
      Overrides:
      tearDown in class AbstractSwitchingDataSourceTest
    • 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

      public void shouldNotAllowUsingReadOnlyDataSourceWhenWithinActiveTx() throws Exception
      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()