Nachbearbeitung: verbliebene Meilensteinbezüge in BootstrapRunnerTest
entfernt
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user