Class BufferedDatabaseUtilizationServiceTest

java.lang.Object
de.hybris.platform.azure.dtu.impl.BufferedDatabaseUtilizationServiceTest

@UnitTest public class BufferedDatabaseUtilizationServiceTest extends Object
  • Field Details

    • mockitorule

      public org.mockito.junit.MockitoRule mockitorule
  • Constructor Details

    • BufferedDatabaseUtilizationServiceTest

      public BufferedDatabaseUtilizationServiceTest()
  • Method Details

    • shouldBeActive

      public void shouldBeActive()
    • shouldBeInactive

      public void shouldBeInactive()
    • shouldReturnEmptyDTUForEmptyQuery

      public void shouldReturnEmptyDTUForEmptyQuery()
    • shouldReturnEmptyDTUObjectsForOneElementsFromDB

      public void shouldReturnEmptyDTUObjectsForOneElementsFromDB()
    • shouldReturnEmptyDTUObjectsForTwoOrMoreElementsFromDB

      public void shouldReturnEmptyDTUObjectsForTwoOrMoreElementsFromDB()
    • shouldReturnSomething

      public void shouldReturnSomething()
    • shouldTestSmallBuffer

      public void shouldTestSmallBuffer() throws InterruptedException
      Throws:
      InterruptedException
    • shouldTestPeriodToNotFetchNewData

      public void shouldTestPeriodToNotFetchNewData() throws InterruptedException
      Throws:
      InterruptedException
    • shouldUseExpiredDataWhenOtherThreadIsLoadingDataFromDB

      public void shouldUseExpiredDataWhenOtherThreadIsLoadingDataFromDB() throws InterruptedException, ExecutionException, TimeoutException
      Throws:
      InterruptedException
      ExecutionException
      TimeoutException