1
0

Kleinere Korrekturen

This commit is contained in:
2026-04-10 07:50:51 +02:00
parent 3f1d50d356
commit 8a785f1baa
10 changed files with 339 additions and 36 deletions

View File

@@ -26,7 +26,9 @@ package de.gecheckt.pdf.umbenenner.application.port.out;
*/
public class DocumentPersistenceException extends RuntimeException {
/**
private static final long serialVersionUID = -8362115097253107643L;
/**
* Constructs a new {@code DocumentPersistenceException} with the given message.
*
* @param message human-readable description of the persistence failure

View File

@@ -6,7 +6,6 @@ import java.util.Objects;
import java.util.Set;
import de.gecheckt.pdf.umbenenner.application.port.out.ClockPort;
import de.gecheckt.pdf.umbenenner.application.service.AiResponseValidator.AiValidationResult;
import de.gecheckt.pdf.umbenenner.domain.model.AiErrorClassification;
import de.gecheckt.pdf.umbenenner.domain.model.DateSource;
import de.gecheckt.pdf.umbenenner.domain.model.NamingProposal;

View File

@@ -1339,8 +1339,6 @@ class DocumentProcessingCoordinatorTest {
private final CapturingDocumentRecordRepository recordRepo;
private final CapturingProcessingAttemptRepository attemptRepo;
boolean failOnExecute = false;
Consumer<TransactionOperations> lastOperations = null;
CapturingUnitOfWorkPort(CapturingDocumentRecordRepository recordRepo,
CapturingProcessingAttemptRepository attemptRepo) {
this.recordRepo = recordRepo;
@@ -1349,7 +1347,6 @@ class DocumentProcessingCoordinatorTest {
@Override
public void executeInTransaction(Consumer<TransactionOperations> operations) {
this.lastOperations = operations;
if (failOnExecute) {
throw new DocumentPersistenceException("Simulated transaction failure");
}

View File

@@ -1488,7 +1488,6 @@ class BatchRunProcessingUseCaseTest {
private static class CapturingProcessingLogger implements ProcessingLogger {
int infoCallCount = 0;
int debugCallCount = 0;
int debugSensitiveAiContentCallCount = 0;
int warnCallCount = 0;
int errorCallCount = 0;
@@ -1504,7 +1503,6 @@ class BatchRunProcessingUseCaseTest {
@Override
public void debugSensitiveAiContent(String message, Object... args) {
debugSensitiveAiContentCallCount++;
}
@Override