1
0

PreCheckFailed auf strukturierten Fehlergrund umgestellt

This commit is contained in:
2026-04-02 15:49:42 +02:00
parent 747f22438d
commit a703eca5a4
8 changed files with 45 additions and 28 deletions

View File

@@ -89,7 +89,7 @@ class DocumentProcessingOutcomeTest {
@Test
void testPreCheckFailed_IsDocumentProcessingOutcome() {
// Verify type relationship
var failed = new PreCheckFailed(candidate, "Test failure reason");
var failed = new PreCheckFailed(candidate, PreCheckFailureReason.NO_USABLE_TEXT);
assertInstanceOf(DocumentProcessingOutcome.class, failed);
}
@@ -100,7 +100,7 @@ class DocumentProcessingOutcomeTest {
DocumentProcessingOutcome[] outcomes = {
new PreCheckPassed(candidate, extraction),
new PreCheckFailed(candidate, "Deterministic content failure"),
new PreCheckFailed(candidate, PreCheckFailureReason.NO_USABLE_TEXT),
new TechnicalDocumentError(candidate, "Technical extraction error", null)
};