Class BufferedDatabaseUtilizationServiceTest
java.lang.Object
de.hybris.platform.azure.dtu.impl.BufferedDatabaseUtilizationServiceTest
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidvoid
-
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
- Throws:
InterruptedException
-
shouldTestPeriodToNotFetchNewData
- Throws:
InterruptedException
-
shouldUseExpiredDataWhenOtherThreadIsLoadingDataFromDB
public void shouldUseExpiredDataWhenOtherThreadIsLoadingDataFromDB() throws InterruptedException, ExecutionException, TimeoutException
-