44import org .junit .jupiter .api .Test ;
55
66import static org .junit .jupiter .api .Assertions .assertFalse ;
7+ import static org .junit .jupiter .api .Assertions .assertTrue ;
78
89/**
910 * Acceptance evidence for EVT-015 — the classic event-priority filter expectation.
@@ -17,17 +18,22 @@ class EventPriorityConformanceTest extends ConformanceTestBase {
1718
1819 private static final String ROBOT = "conformance.probes.EventPriorityProbe" ;
1920 private static final String ENEMY = "sample.Target" ;
21+ private static final String SCAN_OBSERVED = "ScanObserved!!!" ;
2022 private static final String SCANNED = "ScannedDuringWallHandler!!!" ;
2123 private static final java .nio .file .Path SOURCE = ConformanceHarness .repoRoot ()
2224 .resolve ("compat-test/conformance-robots/conformance/probes/EventPriorityProbe.java" );
2325
2426 @ Test
2527 @ DisplayName ("EVT-015: a lower-priority scan is suppressed on both engines" )
2628 void testEVT015_IntegrationPositive_LowerPriorityScanIsSuppressedOnBothEngines () {
27- assertOnBothEngines (ROBOT , SOURCE , ENEMY , (outcome , engine ) ->
29+ assertOnBothEngines (ROBOT , SOURCE , ENEMY , (outcome , engine ) -> {
30+ assertTrue (outcome .anyConsoleContains (SCAN_OBSERVED ),
31+ () -> "the priority probe observed no scan on " + engine
32+ + " (" + outcome .summary () + ")" );
2833 assertFalse (outcome .anyConsoleContains (SCANNED ),
2934 () -> "the lower-priority scan handler ran on " + engine
30- + " (" + outcome .summary () + ")" ));
35+ + " (" + outcome .summary () + ")" );
36+ });
3137 }
3238
3339 @ Test
@@ -36,6 +42,14 @@ void testEVT015_IntegrationNegative_BridgeDoesNotReportAScanClassicDidNotSee() {
3642 BattleOutcome classic = outcomeFor (Engine .CLASSIC , ROBOT , SOURCE , ENEMY );
3743 BattleOutcome bridge = outcomeFor (Engine .BRIDGE , ROBOT , SOURCE , ENEMY );
3844
45+ assertTrue (classic .completed (), () -> "the classic priority-probe battle did not complete ("
46+ + classic .summary () + ")" );
47+ assertTrue (bridge .completed (), () -> "the bridge priority-probe battle did not complete ("
48+ + bridge .summary () + ")" );
49+ assertTrue (classic .anyConsoleContains (SCAN_OBSERVED ),
50+ () -> "the classic priority probe observed no scan (" + classic .summary () + ")" );
51+ assertTrue (bridge .anyConsoleContains (SCAN_OBSERVED ),
52+ () -> "the bridge priority probe observed no scan (" + bridge .summary () + ")" );
3953 assertFalse (classic .anyConsoleContains (SCANNED ),
4054 () -> "the classic priority-probe baseline reported a scan ("
4155 + classic .summary () + ")" );
0 commit comments