From deaa8c9fa36f9df4d83d667b98f5de9ac2e0e64f Mon Sep 17 00:00:00 2001 From: Marcus van Elst Date: Sat, 4 Apr 2026 14:21:58 +0200 Subject: [PATCH] =?UTF-8?q?Nachbearbeitung:=20verbliebene=20Meilensteinbez?= =?UTF-8?q?=C3=BCge=20in=20BootstrapRunnerTest=20entfernt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bootstrap/BootstrapRunnerTest.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pdf-umbenenner-bootstrap/src/test/java/de/gecheckt/pdf/umbenenner/bootstrap/BootstrapRunnerTest.java b/pdf-umbenenner-bootstrap/src/test/java/de/gecheckt/pdf/umbenenner/bootstrap/BootstrapRunnerTest.java index 31e43be..7c845bc 100644 --- a/pdf-umbenenner-bootstrap/src/test/java/de/gecheckt/pdf/umbenenner/bootstrap/BootstrapRunnerTest.java +++ b/pdf-umbenenner-bootstrap/src/test/java/de/gecheckt/pdf/umbenenner/bootstrap/BootstrapRunnerTest.java @@ -139,7 +139,7 @@ class BootstrapRunnerTest { @Test void run_returnsOneWhenLockUnavailable() throws Exception { - // AP-007: controlled early termination because another instance is already running + // Controlled early termination when another instance is already running ConfigurationPort mockConfigPort = new MockConfigurationPort(tempDir, true); BatchRunProcessingUseCase lockUnavailableUseCase = (context) -> BatchRunOutcome.LOCK_UNAVAILABLE; @@ -158,8 +158,8 @@ class BootstrapRunnerTest { } /** - * Regression test for M2-F2: when runtime.lock.file is absent (empty path), - * BootstrapRunner must apply a default lock path instead of passing Paths.get("") + * Verifies that when runtime.lock.file is absent (empty path), + * BootstrapRunner applies a default lock path instead of passing Paths.get("") * to the lock adapter (which would always see the current directory as "existing" * and permanently block lock acquisition). */ @@ -213,14 +213,14 @@ class BootstrapRunnerTest { } /** - * M3 exit-code contract: a completed batch run returns exit code 0 even when individual - * documents ended with M3 content errors or technical document errors. + * Exit-code contract: a completed batch run returns exit code 0 even when individual + * documents ended with content errors or technical document errors. * Only hard infrastructure or startup failures must cause exit code 1. */ @Test void run_returnsZeroWhenBatchRunCompletesWithDocumentLevelFailures() throws Exception { ConfigurationPort mockConfigPort = new MockConfigurationPort(tempDir, true); - // BatchRunOutcome.SUCCESS is what the M3 use case returns when the run completed, + // BatchRunOutcome.SUCCESS is returned when the batch run completed, // regardless of how many individual documents had content or technical errors. BatchRunProcessingUseCase useCaseWithDocumentFailures = (context) -> BatchRunOutcome.SUCCESS; @@ -234,7 +234,7 @@ class BootstrapRunnerTest { ); assertEquals(0, runner.run(), - "M3 contract: batch completion with document-level failures must return exit code 0"); + "Batch completion with document-level failures must return exit code 0"); } @Test @@ -244,7 +244,7 @@ class BootstrapRunnerTest { } /** - * AP-007: Hard startup failure test — schema initialization failure must be treated as + * Hard startup failure test — schema initialization failure must be treated as * a startup error and result in exit code 1. This verifies that * {@link DocumentPersistenceException} thrown from * {@link PersistenceSchemaInitializationPort#initializeSchema()} is correctly caught