1
0

M2 freigegeben

This commit is contained in:
2026-04-01 08:25:51 +02:00
parent 09ad365308
commit c17cb4a70c
3 changed files with 6 additions and 7 deletions

View File

@@ -14,7 +14,9 @@ package de.gecheckt.pdf.umbenenner.application.port.out;
*/
public class RunLockUnavailableException extends RuntimeException {
/**
private static final long serialVersionUID = -6696023481584876000L;
/**
* Creates a new RunLockUnavailableException with the given message.
*
* @param message description of why the lock could not be acquired

View File

@@ -62,8 +62,7 @@ class ProcessingStatusTest {
@Test
void statusEquality_worksByReference() {
// Enums have identity-based equality
assertTrue(ProcessingStatus.SUCCESS == ProcessingStatus.SUCCESS);
assertFalse(ProcessingStatus.SUCCESS == ProcessingStatus.FAILED_FINAL);
assertNotSame(ProcessingStatus.SUCCESS, ProcessingStatus.FAILED_FINAL);
}
@Test

View File

@@ -61,15 +61,13 @@ class RunIdTest {
@Test
void equals_returnsFalseWhenComparedWithNull() {
RunId runId = new RunId("test-id");
assertNotEquals(runId, null);
assertFalse(runId.equals(null));
assertNotEquals(null, runId);
}
@Test
void equals_returnsFalseWhenComparedWithDifferentType() {
RunId runId = new RunId("test-id");
assertNotEquals(runId, "test-id");
assertFalse(runId.equals("test-id"));
assertNotEquals("test-id", runId);
}
@Test