TSK-1910: Fix QueryWorkbasketHistoryAccTest

Co-Authored-By: Mustapha Zorgati <15628173+mustaphazorgati@users.noreply.github.com>
This commit is contained in:
ryzheboka 2022-07-05 12:02:47 +02:00 committed by Elena Mokeeva
parent 3c67811af3
commit 48fa1fb031
1 changed files with 5 additions and 5 deletions

View File

@ -70,14 +70,14 @@ class QueryWorkbasketHistoryAccTest extends AbstractAccTest {
@Test @Test
void should_ConfirmQueryListOffset_When_ProvidingOffsetAndLimit() { void should_ConfirmQueryListOffset_When_ProvidingOffsetAndLimit() {
List<WorkbasketHistoryEvent> offsetAndLimitResult = List<WorkbasketHistoryEvent> offsetAndLimitResult =
historyService.createWorkbasketHistoryQuery().list(1, 2); historyService.createWorkbasketHistoryQuery().orderById(SortDirection.ASCENDING).list(1, 2);
List<WorkbasketHistoryEvent> regularResult = List<WorkbasketHistoryEvent> regularResult =
historyService.createWorkbasketHistoryQuery().list(); historyService.createWorkbasketHistoryQuery().orderById(SortDirection.ASCENDING).list();
assertThat(offsetAndLimitResult).hasSize(2); assertThat(offsetAndLimitResult).hasSize(2);
assertThat(offsetAndLimitResult.get(0).getUserId()) assertThat(offsetAndLimitResult.get(0))
.isNotEqualTo(regularResult.get(0).getUserId()) .isNotEqualTo(regularResult.get(0))
.isEqualTo(regularResult.get(1).getUserId()); .isEqualTo(regularResult.get(1));
} }
@Test @Test