This commit is contained in:
2026-09-03 21:50:21 +08:00
parent b8826c3e92
commit d3eaa901f5
@@ -639,7 +639,7 @@ class SmartLoadingServiceTest {
new Member(9L, 30L, 10L, "IN-10", 5), new Member(19L, 31L, 11L, "IN-11", 5),
new Member(29L, 32L, 12L, "IN-12", 5));
ContainerBookingEntity small = booking();
small.setCapacityCbm(new BigDecimal("5"));
small.setCapacityCbm(new BigDecimal("4.9"));
LoadingPlanEntity plan = plan("EDITING", 0);
when(repository.plan(1L)).thenReturn(plan);
when(repository.planByBooking(99L)).thenReturn(plan);
@@ -665,7 +665,7 @@ class SmartLoadingServiceTest {
GroupSnapshot group = group("ACTIVE", null,
new Member(9L, 31L, 11L, "IN-11", 4), new Member(9L, 32L, 12L, "IN-12", 4));
ContainerBookingEntity small = booking();
small.setCapacityCbm(new BigDecimal("5"));
small.setCapacityCbm(new BigDecimal("3.9"));
AtomicInteger version = new AtomicInteger();
List<LoadingPlanItemEntity> saved = new ArrayList<>();
when(repository.plan(1L)).thenAnswer(invocation -> plan("EDITING", version.get()));