From 4c4360cb447f1802426c7ba10a0668695ddc8ef7 Mon Sep 17 00:00:00 2001 From: Trinh-Tan-Dat <21520714@gm.uit.edu.vn> Date: Tue, 11 Jun 2024 16:25:56 +0700 Subject: [PATCH] edit artifact name --- .../commentService/StreamingApplication.java | 2 +- .../commentService/controller/CommentController.java | 10 ++++------ .../com/programming/commentService/model/Comment.java | 2 +- .../commentService/repository/CommentRepository.java | 4 ++-- .../commentService/service/CommentService.java | 6 +++--- src/test/java/TestCommentController.java | 4 ++-- .../commentService/StreamingApplicationTests.java | 2 +- 7 files changed, 14 insertions(+), 16 deletions(-) diff --git a/src/main/java/com/programming/commentService/StreamingApplication.java b/src/main/java/com/programming/commentService/StreamingApplication.java index 3e01de6..953e891 100644 --- a/src/main/java/com/programming/commentService/StreamingApplication.java +++ b/src/main/java/com/programming/commentService/StreamingApplication.java @@ -1,4 +1,4 @@ -package com.programming.streaming; +package com.programming.commentService; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; diff --git a/src/main/java/com/programming/commentService/controller/CommentController.java b/src/main/java/com/programming/commentService/controller/CommentController.java index ed56e60..b1343a3 100644 --- a/src/main/java/com/programming/commentService/controller/CommentController.java +++ b/src/main/java/com/programming/commentService/controller/CommentController.java @@ -1,8 +1,6 @@ -package com.programming.streaming.controller; +package com.programming.commentService.controller; -import java.util.HashMap; import java.util.List; -import java.util.Map; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; @@ -13,9 +11,9 @@ import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; -import com.programming.streaming.model.Comment; -import com.programming.streaming.repository.CommentRepository; -import com.programming.streaming.service.CommentService; +import com.programming.commentService.model.Comment; +import com.programming.commentService.repository.CommentRepository; +import com.programming.commentService.service.CommentService; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PutMapping; diff --git a/src/main/java/com/programming/commentService/model/Comment.java b/src/main/java/com/programming/commentService/model/Comment.java index d96da75..12addaf 100644 --- a/src/main/java/com/programming/commentService/model/Comment.java +++ b/src/main/java/com/programming/commentService/model/Comment.java @@ -1,4 +1,4 @@ -package com.programming.streaming.model; +package com.programming.commentService.model; import org.springframework.data.annotation.Id; import org.springframework.data.mongodb.core.index.Indexed; diff --git a/src/main/java/com/programming/commentService/repository/CommentRepository.java b/src/main/java/com/programming/commentService/repository/CommentRepository.java index 030fe20..aa04cca 100644 --- a/src/main/java/com/programming/commentService/repository/CommentRepository.java +++ b/src/main/java/com/programming/commentService/repository/CommentRepository.java @@ -1,9 +1,9 @@ -package com.programming.streaming.repository; +package com.programming.commentService.repository; import org.springframework.data.mongodb.repository.MongoRepository; import org.springframework.stereotype.Repository; -import com.programming.streaming.model.Comment; +import com.programming.commentService.model.Comment; import java.util.List; @Repository public interface CommentRepository extends MongoRepository { diff --git a/src/main/java/com/programming/commentService/service/CommentService.java b/src/main/java/com/programming/commentService/service/CommentService.java index 9377349..b2d0077 100644 --- a/src/main/java/com/programming/commentService/service/CommentService.java +++ b/src/main/java/com/programming/commentService/service/CommentService.java @@ -1,9 +1,9 @@ -package com.programming.streaming.service; +package com.programming.commentService.service; import org.springframework.stereotype.Service; -import com.programming.streaming.model.Comment; -import com.programming.streaming.repository.CommentRepository; +import com.programming.commentService.model.Comment; +import com.programming.commentService.repository.CommentRepository; import java.util.List; diff --git a/src/test/java/TestCommentController.java b/src/test/java/TestCommentController.java index f1001b9..b5e2e12 100644 --- a/src/test/java/TestCommentController.java +++ b/src/test/java/TestCommentController.java @@ -8,9 +8,9 @@ import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.web.servlet.MockMvc; -import com.programming.streaming.model.Comment; +import com.programming.commentService.model.Comment; -@SpringBootTest(classes = com.programming.streaming.StreamingApplication.class) +@SpringBootTest(classes = com.programming.commentService.StreamingApplication.class) @AutoConfigureMockMvc public class TestCommentController { diff --git a/src/test/java/com/programming/commentService/StreamingApplicationTests.java b/src/test/java/com/programming/commentService/StreamingApplicationTests.java index af2c088..5c53d09 100644 --- a/src/test/java/com/programming/commentService/StreamingApplicationTests.java +++ b/src/test/java/com/programming/commentService/StreamingApplicationTests.java @@ -1,4 +1,4 @@ -package com.programming.streaming; +package com.programming.commentService; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest;