refactor: Refined packaging (renamed packages and classes)
authorKai Moritz <kai@juplo.de>
Wed, 28 Dec 2022 16:14:28 +0000 (17:14 +0100)
committerKai Moritz <kai@juplo.de>
Sun, 15 Jan 2023 18:35:59 +0000 (19:35 +0100)
src/main/java/de/juplo/kafka/chat/backend/ChatBackendApplication.java
src/main/java/de/juplo/kafka/chat/backend/api/ChatBackendController.java
src/main/java/de/juplo/kafka/chat/backend/api/ChatBackendControllerAdvice.java
src/main/java/de/juplo/kafka/chat/backend/api/MessageTo.java
src/main/java/de/juplo/kafka/chat/backend/domain/Chatroom.java
src/main/java/de/juplo/kafka/chat/backend/domain/Message.java
src/main/java/de/juplo/kafka/chat/backend/domain/MessageMutationException.java
src/test/java/de/juplo/kafka/chat/backend/ChatBackendApplicationTests.java

index 287c9ee..f8c38b6 100644 (file)
@@ -1,4 +1,4 @@
-package de.juplo.kafka.chatroom;
+package de.juplo.kafka.chat.backend;
 
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
@@ -8,7 +8,7 @@ import java.time.Clock;
 
 
 @SpringBootApplication
-public class ChatroomApplication
+public class ChatBackendApplication
 {
        @Bean
        public Clock clock()
@@ -19,6 +19,6 @@ public class ChatroomApplication
 
        public static void main(String[] args)
        {
-               SpringApplication.run(ChatroomApplication.class, args);
+               SpringApplication.run(ChatBackendApplication.class, args);
        }
 }
index d613092..437ff1f 100644 (file)
@@ -1,6 +1,6 @@
-package de.juplo.kafka.chatroom.api;
+package de.juplo.kafka.chat.backend.api;
 
-import de.juplo.kafka.chatroom.domain.Chatroom;
+import de.juplo.kafka.chat.backend.domain.Chatroom;
 import lombok.RequiredArgsConstructor;
 import org.springframework.http.MediaType;
 import org.springframework.web.bind.annotation.*;
@@ -17,7 +17,7 @@ import java.util.UUID;
 
 @RestController
 @RequiredArgsConstructor
-public class ChatroomController
+public class ChatBackendController
 {
   private final Map<UUID, Chatroom> chatrooms = new HashMap<>();
   private final Clock clock;
index 42f7599..d164fb5 100644 (file)
@@ -1,6 +1,6 @@
-package de.juplo.kafka.chatroom.api;
+package de.juplo.kafka.chat.backend.api;
 
-import de.juplo.kafka.chatroom.domain.MessageMutationException;
+import de.juplo.kafka.chat.backend.domain.MessageMutationException;
 import org.springframework.beans.factory.annotation.Value;
 import org.springframework.http.HttpStatus;
 import org.springframework.http.ProblemDetail;
@@ -13,7 +13,7 @@ import java.util.Date;
 
 
 @ControllerAdvice
-public class ChatroomControllerAdvice
+public class ChatBackendControllerAdvice
 {
   @Value("${server.context-path:/}")
   String contextPath;
index c771386..7c72873 100644 (file)
@@ -1,6 +1,6 @@
-package de.juplo.kafka.chatroom.api;
+package de.juplo.kafka.chat.backend.api;
 
-import de.juplo.kafka.chatroom.domain.Message;
+import de.juplo.kafka.chat.backend.domain.Message;
 import lombok.AllArgsConstructor;
 import lombok.Data;
 
index 62d33f2..62c9732 100644 (file)
@@ -1,4 +1,4 @@
-package de.juplo.kafka.chatroom.domain;
+package de.juplo.kafka.chat.backend.domain;
 
 import lombok.Getter;
 import lombok.RequiredArgsConstructor;
index 84cdded..d52ce8a 100644 (file)
@@ -1,4 +1,4 @@
-package de.juplo.kafka.chatroom.domain;
+package de.juplo.kafka.chat.backend.domain;
 
 import lombok.EqualsAndHashCode;
 import lombok.Getter;
index 9b23ad0..fde473c 100644 (file)
@@ -1,10 +1,10 @@
-package de.juplo.kafka.chatroom;
+package de.juplo.kafka.chat.backend;
 
 import org.junit.jupiter.api.Test;
 import org.springframework.boot.test.context.SpringBootTest;
 
 @SpringBootTest
-class ChatroomApplicationTests
+class ChatBackendApplicationTests
 {
        @Test
        void contextLoads()