fix: close phase4 overseas acceptance gaps
This commit is contained in:
+7
-3
@@ -12,6 +12,7 @@ import java.io.IOException;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.util.List;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertFalse;
|
||||
@@ -108,9 +109,12 @@ class InventorySchemaContractTest {
|
||||
assertThrowsNoField(InventoryPosition.class, "productQuantity");
|
||||
assertNotNull(InventoryLedger.class.getDeclaredField("skuCode"));
|
||||
assertNotNull(InventoryLedger.class.getDeclaredField("cartonMark"));
|
||||
assertNotNull(InventoryLedger.class.getDeclaredField("beforeQuantity"));
|
||||
assertNotNull(InventoryLedger.class.getDeclaredField("deltaQuantity"));
|
||||
assertNotNull(InventoryLedger.class.getDeclaredField("afterQuantity"));
|
||||
for (String field : List.of("beforeQuantity", "deltaQuantity", "afterQuantity")) {
|
||||
var annotation = InventoryLedger.class.getDeclaredField(field)
|
||||
.getAnnotation(com.baomidou.mybatisplus.annotation.TableField.class);
|
||||
assertNotNull(annotation, field);
|
||||
assertFalse(annotation.exist(), field);
|
||||
}
|
||||
}
|
||||
|
||||
private static void assertThrowsNoField(Class<?> type, String fieldName) {
|
||||
|
||||
Reference in New Issue
Block a user