fix: complete order measurement downstream flow

This commit is contained in:
2026-09-18 14:58:40 +08:00
parent 02d2474141
commit c8a99f9fff
43 changed files with 621 additions and 52 deletions
@@ -94,10 +94,13 @@ class LastlegOrderServiceTest {
order.setSourceContainerBookingId("BOOKING-1");
LastlegOrderSummary summary = ReflectionTestUtils.invokeMethod(
service, "summary", order, List.of(), null, "UNSCHEDULED");
service, "summary", order, List.of(), null, "UNSCHEDULED",
new LastlegOrderMapper.OrderWeightRow(11L, new java.math.BigDecimal("30"), new java.math.BigDecimal("22")));
assertNotNull(summary);
assertEquals("BOOKING-1", summary.sourceContainerBookingId());
assertEquals(new java.math.BigDecimal("30"), summary.grossWeightKg());
assertEquals(new java.math.BigDecimal("22"), summary.netWeightKg());
}
@BeforeEach