提交
This commit is contained in:
+5
@@ -133,6 +133,11 @@ class ProcurementWorkflowPersistenceTest {
|
||||
assertThat(resubmitted.receipts().get(0).fileIds()).containsExactly(101L);
|
||||
assertThat(resubmitted.receipts().get(1).fileIds()).containsExactly(104L);
|
||||
assertThat(resubmitted.stockQuantity()).isEqualTo(10);
|
||||
// 重新查询数据库及详情,避免仅内存对象清空而刷新后旧原因又出现。
|
||||
var persisted = orders.findNo("9", "CG-1");
|
||||
assertThat(persisted.getCustomerRejectionReason()).isNull();
|
||||
assertThat(persisted.getRejectedPhotoIds()).isNull();
|
||||
assertThat(tx.execute(s -> service.read("9", "CG-1")).rejectionReason()).isNull();
|
||||
assertThat(tx.execute(s -> service.requestConfirmation("9", "CG-1", "7", command)).version()).isEqualTo(5);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user