From 0e489c97136dbda8e1eb5058d3975a6d7846f2b3 Mon Sep 17 00:00:00 2001 From: Marcus Fihlon Date: Sun, 22 Dec 2024 12:42:24 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Forgot=20to=20rename=20the=20tes?= =?UTF-8?q?t=20#8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcus Fihlon --- .../{EventListTest.java => EventOverviewTest.java} | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename src/test/java/swiss/fihlon/rallyman/ui/component/{EventListTest.java => EventOverviewTest.java} (85%) diff --git a/src/test/java/swiss/fihlon/rallyman/ui/component/EventListTest.java b/src/test/java/swiss/fihlon/rallyman/ui/component/EventOverviewTest.java similarity index 85% rename from src/test/java/swiss/fihlon/rallyman/ui/component/EventListTest.java rename to src/test/java/swiss/fihlon/rallyman/ui/component/EventOverviewTest.java index 4e96fb8..4205e4e 100644 --- a/src/test/java/swiss/fihlon/rallyman/ui/component/EventListTest.java +++ b/src/test/java/swiss/fihlon/rallyman/ui/component/EventOverviewTest.java @@ -29,7 +29,7 @@ import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; -class EventListTest { +class EventOverviewTest { @Test void happyCase() { @@ -37,9 +37,9 @@ void happyCase() { when(databaseService.getUpcomingEvents()) .thenReturn(Stream.of(new EventSummaryData(42L, "Test Name", LocalDateTime.MAX, "Test Location"))); - final var eventList = new EventOverview(databaseService); - assertEquals(1, eventList.getChildren().count()); - assertInstanceOf(EventSummary.class, eventList.getChildren().findFirst().orElseThrow()); + final var eventOverview = new EventOverview(databaseService); + assertEquals(1, eventOverview.getChildren().count()); + assertInstanceOf(EventSummary.class, eventOverview.getChildren().findFirst().orElseThrow()); } }