fix: reuse overseas receiving resources in acceptance

This commit is contained in:
2026-09-11 00:48:21 +08:00
parent 9abb0004dd
commit 7dff9b57ed
8 changed files with 107 additions and 85 deletions
@@ -90,4 +90,12 @@ class RelabelContractTest {
openApi.indexOf(" RelabelItem:"));
assertFalse(relabelCreate.contains("customerId"));
}
@Test
void missingDeliveryMethodIsValidatedWithoutCallingNullRejectingSetContains() throws Exception {
String service = Files.readString(Path.of("src/main/java/com/baiyue/lastleg/relabel/service/RelabelApplicationService.java"),
StandardCharsets.UTF_8);
assertTrue(service.contains("requiresOutbound && (!StringUtils.hasText(deliveryMethod)"
+ " || !DELIVERY_METHODS.contains(deliveryMethod))"));
}
}