PreCheckFailed auf strukturierten Fehlergrund umgestellt
This commit is contained in:
@@ -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)
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user