test(lastleg): specify departed scope for database pagination check

This commit is contained in:
2026-10-26 15:54:43 +08:00
parent 9f7cac22b3
commit c6bc3ac85b
@@ -424,9 +424,10 @@ class LastlegOrderServiceTest {
}
@Test
void pageUsesPaginationAndPlatformFiltersWithoutCustomerScope() {
void departedPageUsesPaginationAndPlatformFiltersWithoutCustomerScope() {
var query = new LastlegOrderRequests.Query(3L, 25L, "LL-", "FIRST_LEG", "IN-", null,
null, "", "PENDING_ASSIGNMENT", null, "LAX", null, null, null, null, null, null, null, null, null);
null, "", "PENDING_ASSIGNMENT", null, "LAX", null, null, null, null, null,
LastlegOrderRequests.SailingStage.AFTER_DEPARTURE, null, null, null);
var resultPage = new com.baomidou.mybatisplus.extension.plugins.pagination.Page<LastlegOrder>(3, 25);
resultPage.setTotal(0);
when(orders.selectPage(any(), any())).thenReturn(resultPage);
@@ -438,6 +439,7 @@ class LastlegOrderServiceTest {
verify(orders).selectPage(page.capture(), any());
assertEquals(3, page.getValue().getCurrent());
assertEquals(25, page.getValue().getSize());
verifyNoInteractions(preDeparture);
}