优化
This commit is contained in:
@@ -639,7 +639,7 @@ class SmartLoadingServiceTest {
|
|||||||
new Member(9L, 30L, 10L, "IN-10", 5), new Member(19L, 31L, 11L, "IN-11", 5),
|
new Member(9L, 30L, 10L, "IN-10", 5), new Member(19L, 31L, 11L, "IN-11", 5),
|
||||||
new Member(29L, 32L, 12L, "IN-12", 5));
|
new Member(29L, 32L, 12L, "IN-12", 5));
|
||||||
ContainerBookingEntity small = booking();
|
ContainerBookingEntity small = booking();
|
||||||
small.setCapacityCbm(new BigDecimal("5"));
|
small.setCapacityCbm(new BigDecimal("4.9"));
|
||||||
LoadingPlanEntity plan = plan("EDITING", 0);
|
LoadingPlanEntity plan = plan("EDITING", 0);
|
||||||
when(repository.plan(1L)).thenReturn(plan);
|
when(repository.plan(1L)).thenReturn(plan);
|
||||||
when(repository.planByBooking(99L)).thenReturn(plan);
|
when(repository.planByBooking(99L)).thenReturn(plan);
|
||||||
@@ -665,7 +665,7 @@ class SmartLoadingServiceTest {
|
|||||||
GroupSnapshot group = group("ACTIVE", null,
|
GroupSnapshot group = group("ACTIVE", null,
|
||||||
new Member(9L, 31L, 11L, "IN-11", 4), new Member(9L, 32L, 12L, "IN-12", 4));
|
new Member(9L, 31L, 11L, "IN-11", 4), new Member(9L, 32L, 12L, "IN-12", 4));
|
||||||
ContainerBookingEntity small = booking();
|
ContainerBookingEntity small = booking();
|
||||||
small.setCapacityCbm(new BigDecimal("5"));
|
small.setCapacityCbm(new BigDecimal("3.9"));
|
||||||
AtomicInteger version = new AtomicInteger();
|
AtomicInteger version = new AtomicInteger();
|
||||||
List<LoadingPlanItemEntity> saved = new ArrayList<>();
|
List<LoadingPlanItemEntity> saved = new ArrayList<>();
|
||||||
when(repository.plan(1L)).thenAnswer(invocation -> plan("EDITING", version.get()));
|
when(repository.plan(1L)).thenAnswer(invocation -> plan("EDITING", version.get()));
|
||||||
|
|||||||
Reference in New Issue
Block a user