fix: materialize container pallet plans
This commit is contained in:
+4
@@ -105,6 +105,10 @@ class WarehousePalletBatchServiceTest {
|
||||
verify(resources).createPallet(org.mockito.ArgumentMatchers.eq(WarehouseResourceService.PUBLIC_RESOURCE_SCOPE),
|
||||
org.mockito.ArgumentMatchers.eq(WAREHOUSE), saves.capture());
|
||||
assertThat(saves.getValue().palletCode()).isNull();
|
||||
assertThat(saves.getValue().palletType()).isEqualTo("WOOD");
|
||||
assertThat(saves.getValue().capacityCbm()).isEqualByComparingTo("2.0000");
|
||||
assertThat(saves.getValue().unitPrice()).isEqualByComparingTo("5.00");
|
||||
assertThat(saves.getValue().remark()).isEqualTo("自动生成");
|
||||
assertThat(response.items()).extracting(value -> value.palletCode()).containsExactly("PAL-301");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user