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,6 +14,8 @@ package de.gecheckt.pdf.umbenenner.application.port.out;
*/ */
public class RunLockUnavailableException extends RuntimeException { public class RunLockUnavailableException extends RuntimeException {
private static final long serialVersionUID = -6696023481584876000L;
/** /**
* Creates a new RunLockUnavailableException with the given message. * Creates a new RunLockUnavailableException with the given message.
* *

View File

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

View File

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