test(firstleg): align outbound truck lookup contract
This commit is contained in:
+5
-2
@@ -67,7 +67,7 @@ class OutboundDispatchReadMapperContractTest {
|
||||
void oceanAndTruckQueriesAreResolvedOnceFromTheContainerRoot() throws Exception {
|
||||
String oceanSql = OutboundDispatchReadMapper.class.getMethod("ocean", long.class)
|
||||
.getAnnotation(Select.class).value()[0];
|
||||
String truckSql = OutboundDispatchReadMapper.class.getMethod("truck", long.class, long.class)
|
||||
String truckSql = OutboundDispatchReadMapper.class.getMethod("truck", long.class)
|
||||
.getAnnotation(Select.class).value()[0];
|
||||
|
||||
assertThat(oceanSql)
|
||||
@@ -75,7 +75,10 @@ class OutboundDispatchReadMapperContractTest {
|
||||
.contains("booking.customer_id customerId")
|
||||
.doesNotContain("#{tenantId}");
|
||||
assertThat(truckSql)
|
||||
.contains("container_booking_id=#{containerBookingId}", "loading_plan_id=#{loadingPlanId}")
|
||||
.contains("fl_truck_appointment appointment", "fl_ocean_booking_container_allocation allocation")
|
||||
.contains("allocation.ocean_booking_id=appointment.ocean_booking_id")
|
||||
.contains("allocation.container_booking_id=#{containerBookingId}")
|
||||
.doesNotContain("loading_plan_id", "#{loadingPlanId}")
|
||||
.doesNotContain("#{tenantId}");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user