From 59817848f48179a4bb3f9e773f8bbfcca24cf7d8 Mon Sep 17 00:00:00 2001 From: zgw <13623675548@163.com> Date: Thu, 6 Aug 2026 20:02:04 +0800 Subject: [PATCH] test(javaTest): lock reroute and resource safety gates --- .../history/simulation/CorridorReservationManagerTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/javaTest/src/test/java/com/ft546/wcs/shadow/history/simulation/CorridorReservationManagerTest.java b/javaTest/src/test/java/com/ft546/wcs/shadow/history/simulation/CorridorReservationManagerTest.java index fd58587..097c94e 100644 --- a/javaTest/src/test/java/com/ft546/wcs/shadow/history/simulation/CorridorReservationManagerTest.java +++ b/javaTest/src/test/java/com/ft546/wcs/shadow/history/simulation/CorridorReservationManagerTest.java @@ -8,6 +8,7 @@ import java.util.Set; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertTrue; class CorridorReservationManagerTest { @@ -69,6 +70,8 @@ class CorridorReservationManagerTest { edgesFor(manager, "TASK-1")); assertEquals("TASK-1", manager.ownerFor("A", "B")); assertEquals("TASK-1", manager.ownerFor("B", "C")); + assertNull(manager.ownerFor("A", "D")); + assertEquals(3, manager.snapshot().size()); } @Test