From b3a1da84d520cfa760706ca6aba4399c81f1a0c1 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Tue, 20 Dec 2022 18:26:15 +0100 Subject: [PATCH] refactor: Simplified the name of the application-class --- ...mServiceApplication.java => ChatroomApplication.java} | 9 +++++---- ...plicationTests.java => ChatroomApplicationTests.java} | 3 ++- 2 files changed, 7 insertions(+), 5 deletions(-) rename src/main/java/de/juplo/kafka/chatroom/{ChatroomServiceApplication.java => ChatroomApplication.java} (55%) rename src/test/java/de/juplo/kafka/chatroom/{ChatroomServiceApplicationTests.java => ChatroomApplicationTests.java} (82%) diff --git a/src/main/java/de/juplo/kafka/chatroom/ChatroomServiceApplication.java b/src/main/java/de/juplo/kafka/chatroom/ChatroomApplication.java similarity index 55% rename from src/main/java/de/juplo/kafka/chatroom/ChatroomServiceApplication.java rename to src/main/java/de/juplo/kafka/chatroom/ChatroomApplication.java index 769bc40c..ee6f7ee4 100644 --- a/src/main/java/de/juplo/kafka/chatroom/ChatroomServiceApplication.java +++ b/src/main/java/de/juplo/kafka/chatroom/ChatroomApplication.java @@ -4,10 +4,11 @@ import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication -public class ChatroomServiceApplication { - - public static void main(String[] args) { - SpringApplication.run(ChatroomServiceApplication.class, args); +public class ChatroomApplication +{ + public static void main(String[] args) + { + SpringApplication.run(ChatroomApplication.class, args); } } diff --git a/src/test/java/de/juplo/kafka/chatroom/ChatroomServiceApplicationTests.java b/src/test/java/de/juplo/kafka/chatroom/ChatroomApplicationTests.java similarity index 82% rename from src/test/java/de/juplo/kafka/chatroom/ChatroomServiceApplicationTests.java rename to src/test/java/de/juplo/kafka/chatroom/ChatroomApplicationTests.java index 3d5f709a..d2e0d3bc 100644 --- a/src/test/java/de/juplo/kafka/chatroom/ChatroomServiceApplicationTests.java +++ b/src/test/java/de/juplo/kafka/chatroom/ChatroomApplicationTests.java @@ -4,7 +4,8 @@ import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; @SpringBootTest -class ChatroomServiceApplicationTests { +class ChatroomApplicationTests +{ @Test void contextLoads() { -- 2.20.1