Nachbearbeitung: verbliebene Meilensteinbezüge in BootstrapRunnerTest
entfernt
This commit is contained in:
@@ -139,7 +139,7 @@ class BootstrapRunnerTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
void run_returnsOneWhenLockUnavailable() throws Exception {
|
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);
|
ConfigurationPort mockConfigPort = new MockConfigurationPort(tempDir, true);
|
||||||
BatchRunProcessingUseCase lockUnavailableUseCase = (context) -> BatchRunOutcome.LOCK_UNAVAILABLE;
|
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),
|
* Verifies that when runtime.lock.file is absent (empty path),
|
||||||
* BootstrapRunner must apply a default lock path instead of passing Paths.get("")
|
* BootstrapRunner applies a default lock path instead of passing Paths.get("")
|
||||||
* to the lock adapter (which would always see the current directory as "existing"
|
* to the lock adapter (which would always see the current directory as "existing"
|
||||||
* and permanently block lock acquisition).
|
* 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
|
* Exit-code contract: a completed batch run returns exit code 0 even when individual
|
||||||
* documents ended with M3 content errors or technical document errors.
|
* documents ended with content errors or technical document errors.
|
||||||
* Only hard infrastructure or startup failures must cause exit code 1.
|
* Only hard infrastructure or startup failures must cause exit code 1.
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
void run_returnsZeroWhenBatchRunCompletesWithDocumentLevelFailures() throws Exception {
|
void run_returnsZeroWhenBatchRunCompletesWithDocumentLevelFailures() throws Exception {
|
||||||
ConfigurationPort mockConfigPort = new MockConfigurationPort(tempDir, true);
|
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.
|
// regardless of how many individual documents had content or technical errors.
|
||||||
BatchRunProcessingUseCase useCaseWithDocumentFailures = (context) -> BatchRunOutcome.SUCCESS;
|
BatchRunProcessingUseCase useCaseWithDocumentFailures = (context) -> BatchRunOutcome.SUCCESS;
|
||||||
|
|
||||||
@@ -234,7 +234,7 @@ class BootstrapRunnerTest {
|
|||||||
);
|
);
|
||||||
|
|
||||||
assertEquals(0, runner.run(),
|
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
|
@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
|
* a startup error and result in exit code 1. This verifies that
|
||||||
* {@link DocumentPersistenceException} thrown from
|
* {@link DocumentPersistenceException} thrown from
|
||||||
* {@link PersistenceSchemaInitializationPort#initializeSchema()} is correctly caught
|
* {@link PersistenceSchemaInitializationPort#initializeSchema()} is correctly caught
|
||||||
|
|||||||
Reference in New Issue
Block a user