diff --git a/src/main/java/swiss/fihlon/apus/event/Speaker.java b/src/main/java/swiss/fihlon/apus/event/Speaker.java index 227451b..046e260 100644 --- a/src/main/java/swiss/fihlon/apus/event/Speaker.java +++ b/src/main/java/swiss/fihlon/apus/event/Speaker.java @@ -19,11 +19,4 @@ import org.jetbrains.annotations.NotNull; -public record Speaker(@NotNull String fullName) implements Comparable { - - @Override - public int compareTo(@NotNull final Speaker other) { - return fullName.compareTo(other.fullName); - } - -} +public record Speaker(@NotNull String fullName) { } diff --git a/src/test/java/swiss/fihlon/apus/event/SpeakerTest.java b/src/test/java/swiss/fihlon/apus/event/SpeakerTest.java index 6aac017..4343e4e 100644 --- a/src/test/java/swiss/fihlon/apus/event/SpeakerTest.java +++ b/src/test/java/swiss/fihlon/apus/event/SpeakerTest.java @@ -23,13 +23,6 @@ class SpeakerTest { - @Test - void compareTo() { - assertEquals(-1, new Speaker("Speaker 1").compareTo(new Speaker("Speaker 2"))); - assertEquals(0, new Speaker("Speaker 1").compareTo(new Speaker("Speaker 1"))); - assertEquals(1, new Speaker("Speaker 2").compareTo(new Speaker("Speaker 1"))); - } - @Test void fullName() { assertEquals("Speaker 1", new Speaker("Speaker 1").fullName());