-package de.juplo.kafka.chatroom;
+package de.juplo.kafka.chat.backend;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
-public class ChatroomApplication
+public class ChatBackendApplication
{
@Bean
public Clock clock()
public static void main(String[] args)
{
- SpringApplication.run(ChatroomApplication.class, args);
+ SpringApplication.run(ChatBackendApplication.class, args);
}
}
-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.*;
@RestController
@RequiredArgsConstructor
-public class ChatroomController
+public class ChatBackendController
{
private final Map<UUID, Chatroom> chatrooms = new HashMap<>();
private final Clock clock;
-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;
@ControllerAdvice
-public class ChatroomControllerAdvice
+public class ChatBackendControllerAdvice
{
@Value("${server.context-path:/}")
String contextPath;
-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;
-package de.juplo.kafka.chatroom.domain;
+package de.juplo.kafka.chat.backend.domain;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
-package de.juplo.kafka.chatroom.domain;
+package de.juplo.kafka.chat.backend.domain;
import lombok.EqualsAndHashCode;
import lombok.Getter;
-package de.juplo.kafka.chatroom.domain;
+package de.juplo.kafka.chat.backend.domain;
import lombok.Getter;
-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()