From 0f0a26e2783856b88b94bc7cd8c3cf0513afa254 Mon Sep 17 00:00:00 2001 From: manje cho Date: Mon, 11 Sep 2023 20:45:13 +0900 Subject: [PATCH 1/4] =?UTF-8?q?[#1]feat:=20Feedback=20Entity=20=EC=84=A4?= =?UTF-8?q?=EA=B3=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/aggregate/entity/Feedback.java | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 src/main/java/com/loveloveshot/feedback/command/domain/aggregate/entity/Feedback.java diff --git a/src/main/java/com/loveloveshot/feedback/command/domain/aggregate/entity/Feedback.java b/src/main/java/com/loveloveshot/feedback/command/domain/aggregate/entity/Feedback.java new file mode 100644 index 0000000..1bca632 --- /dev/null +++ b/src/main/java/com/loveloveshot/feedback/command/domain/aggregate/entity/Feedback.java @@ -0,0 +1,52 @@ +package com.loveloveshot.feedback.command.domain.aggregate.entity; + +import lombok.AccessLevel; +import lombok.Getter; +import lombok.NoArgsConstructor; + +import javax.persistence.*; + +@Entity +@Getter +@NoArgsConstructor(access = AccessLevel.PROTECTED, force = true) +@Table(name = "TBL_FEEDBACK") +public class Feedback { + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Long feedbackNo; + + @Column(columnDefinition = "LONGTEXT") + private String feedbackContent; + +// @Column +// private Date feedbackDate; +// @Column +// private String feedbackTitle; +// @Embedded +// private FeedbackWriterVO feedbackWriterVO; + + public Feedback(Builder builder) { + this.feedbackNo = builder.feedbackNo; + this.feedbackContent = builder.feedbackContent; + } + + public static class Builder { + private Long feedbackNo; + private String feedbackContent; + + public Builder feedbackNo(Long feedbackNo) { + this.feedbackNo = feedbackNo; + return this; + } + + public Builder feedbackContent(String feedbackContent) { + this.feedbackContent = feedbackContent; + return this; + } + + public Feedback build() { + return new Feedback(this); + } + + } +} \ No newline at end of file From 9fa2e0450438e27b57048d7696cef63c832a24fd Mon Sep 17 00:00:00 2001 From: manje cho Date: Tue, 12 Sep 2023 00:24:00 +0900 Subject: [PATCH 2/4] =?UTF-8?q?[#2]setting:=20=EA=B8=B0=EB=B3=B8=20?= =?UTF-8?q?=ED=8C=8C=EC=9D=BC=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/loveloveshot/common/annotation/test.java | 4 ---- .../loveloveshot/feedback/command/application/dto/test.java | 4 ---- .../feedback/command/application/service/test.java | 4 ---- .../feedback/command/domain/aggregate/entity/test.java | 4 ---- .../feedback/command/domain/aggregate/vo/test.java | 4 ---- .../loveloveshot/feedback/command/domain/repository/test.java | 4 ---- .../feedback/command/infrastructure/repository/test.java | 4 ---- .../loveloveshot/feedback/query/application/service/test.java | 4 ---- .../feedback/query/infrastructure/repository/test.java | 4 ---- 9 files changed, 36 deletions(-) delete mode 100644 src/main/java/com/loveloveshot/common/annotation/test.java delete mode 100644 src/main/java/com/loveloveshot/feedback/command/application/dto/test.java delete mode 100644 src/main/java/com/loveloveshot/feedback/command/application/service/test.java delete mode 100644 src/main/java/com/loveloveshot/feedback/command/domain/aggregate/entity/test.java delete mode 100644 src/main/java/com/loveloveshot/feedback/command/domain/aggregate/vo/test.java delete mode 100644 src/main/java/com/loveloveshot/feedback/command/domain/repository/test.java delete mode 100644 src/main/java/com/loveloveshot/feedback/command/infrastructure/repository/test.java delete mode 100644 src/main/java/com/loveloveshot/feedback/query/application/service/test.java delete mode 100644 src/main/java/com/loveloveshot/feedback/query/infrastructure/repository/test.java diff --git a/src/main/java/com/loveloveshot/common/annotation/test.java b/src/main/java/com/loveloveshot/common/annotation/test.java deleted file mode 100644 index be7c5eb..0000000 --- a/src/main/java/com/loveloveshot/common/annotation/test.java +++ /dev/null @@ -1,4 +0,0 @@ -package com.loveloveshot.common.annotation; - -public class test { -} diff --git a/src/main/java/com/loveloveshot/feedback/command/application/dto/test.java b/src/main/java/com/loveloveshot/feedback/command/application/dto/test.java deleted file mode 100644 index 8aee591..0000000 --- a/src/main/java/com/loveloveshot/feedback/command/application/dto/test.java +++ /dev/null @@ -1,4 +0,0 @@ -package com.loveloveshot.feedback.command.application.dto; - -public class test { -} diff --git a/src/main/java/com/loveloveshot/feedback/command/application/service/test.java b/src/main/java/com/loveloveshot/feedback/command/application/service/test.java deleted file mode 100644 index 814290b..0000000 --- a/src/main/java/com/loveloveshot/feedback/command/application/service/test.java +++ /dev/null @@ -1,4 +0,0 @@ -package com.loveloveshot.feedback.command.application.service; - -public class test { -} diff --git a/src/main/java/com/loveloveshot/feedback/command/domain/aggregate/entity/test.java b/src/main/java/com/loveloveshot/feedback/command/domain/aggregate/entity/test.java deleted file mode 100644 index 66ea57c..0000000 --- a/src/main/java/com/loveloveshot/feedback/command/domain/aggregate/entity/test.java +++ /dev/null @@ -1,4 +0,0 @@ -package com.loveloveshot.feedback.command.domain.aggregate.entity; - -public class test { -} diff --git a/src/main/java/com/loveloveshot/feedback/command/domain/aggregate/vo/test.java b/src/main/java/com/loveloveshot/feedback/command/domain/aggregate/vo/test.java deleted file mode 100644 index f087588..0000000 --- a/src/main/java/com/loveloveshot/feedback/command/domain/aggregate/vo/test.java +++ /dev/null @@ -1,4 +0,0 @@ -package com.loveloveshot.feedback.command.domain.aggregate.vo; - -public class test { -} diff --git a/src/main/java/com/loveloveshot/feedback/command/domain/repository/test.java b/src/main/java/com/loveloveshot/feedback/command/domain/repository/test.java deleted file mode 100644 index 90d82cb..0000000 --- a/src/main/java/com/loveloveshot/feedback/command/domain/repository/test.java +++ /dev/null @@ -1,4 +0,0 @@ -package com.loveloveshot.feedback.command.domain.repository; - -public class test { -} diff --git a/src/main/java/com/loveloveshot/feedback/command/infrastructure/repository/test.java b/src/main/java/com/loveloveshot/feedback/command/infrastructure/repository/test.java deleted file mode 100644 index b0ebb47..0000000 --- a/src/main/java/com/loveloveshot/feedback/command/infrastructure/repository/test.java +++ /dev/null @@ -1,4 +0,0 @@ -package com.loveloveshot.feedback.command.infrastructure.repository; - -public class test { -} diff --git a/src/main/java/com/loveloveshot/feedback/query/application/service/test.java b/src/main/java/com/loveloveshot/feedback/query/application/service/test.java deleted file mode 100644 index 920810f..0000000 --- a/src/main/java/com/loveloveshot/feedback/query/application/service/test.java +++ /dev/null @@ -1,4 +0,0 @@ -package com.loveloveshot.feedback.query.application.service; - -public class test { -} diff --git a/src/main/java/com/loveloveshot/feedback/query/infrastructure/repository/test.java b/src/main/java/com/loveloveshot/feedback/query/infrastructure/repository/test.java deleted file mode 100644 index bc1e38b..0000000 --- a/src/main/java/com/loveloveshot/feedback/query/infrastructure/repository/test.java +++ /dev/null @@ -1,4 +0,0 @@ -package com.loveloveshot.feedback.query.infrastructure.repository; - -public class test { -} From 379bf7959fd0903c031f33fc5cf8d0f83f2fa96d Mon Sep 17 00:00:00 2001 From: manje cho Date: Tue, 12 Sep 2023 00:24:26 +0900 Subject: [PATCH 3/4] =?UTF-8?q?[#2]setting:=20=EA=B0=81=20=EC=84=9C?= =?UTF-8?q?=EB=B9=84=EC=8A=A4=20=EC=96=B4=EB=85=B8=ED=85=8C=EC=9D=B4?= =?UTF-8?q?=EC=85=98=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/annotation/DomainService.java | 14 ++++++++++++++ .../common/annotation/InfraService.java | 12 ++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 src/main/java/com/loveloveshot/common/annotation/DomainService.java create mode 100644 src/main/java/com/loveloveshot/common/annotation/InfraService.java diff --git a/src/main/java/com/loveloveshot/common/annotation/DomainService.java b/src/main/java/com/loveloveshot/common/annotation/DomainService.java new file mode 100644 index 0000000..fc73371 --- /dev/null +++ b/src/main/java/com/loveloveshot/common/annotation/DomainService.java @@ -0,0 +1,14 @@ +package com.loveloveshot.common.annotation; + +import org.springframework.context.annotation.Primary; +import org.springframework.stereotype.Service; + +import java.lang.annotation.*; + +@Documented +@Target(ElementType.TYPE) +@Retention(RetentionPolicy.RUNTIME) +@Service +@Primary +public @interface DomainService { +} diff --git a/src/main/java/com/loveloveshot/common/annotation/InfraService.java b/src/main/java/com/loveloveshot/common/annotation/InfraService.java new file mode 100644 index 0000000..89267c2 --- /dev/null +++ b/src/main/java/com/loveloveshot/common/annotation/InfraService.java @@ -0,0 +1,12 @@ +package com.loveloveshot.common.annotation; + +import org.springframework.stereotype.Service; + +import java.lang.annotation.*; + +@Documented +@Target(ElementType.TYPE) +@Retention(RetentionPolicy.RUNTIME) +@Service +public @interface InfraService { +} From f399cfa63021c35af5e7c31e38ad5fdfa1b0c686 Mon Sep 17 00:00:00 2001 From: manje cho Date: Tue, 12 Sep 2023 00:26:14 +0900 Subject: [PATCH 4/4] =?UTF-8?q?[#2,=20#3]feat:=20=ED=94=BC=EB=93=9C?= =?UTF-8?q?=EB=B0=B1=20=EC=BB=A4=EB=A7=A8=EB=93=9C=20=EC=84=9C=EB=B9=84?= =?UTF-8?q?=EC=8A=A4=20=ED=85=8C=EC=8A=A4=ED=8A=B8=20=EC=BC=80=EC=9D=B4?= =?UTF-8?q?=EC=8A=A4,=20=ED=94=BC=EB=93=9C=EB=B0=B1=20Request=20=EB=B0=8F?= =?UTF-8?q?=20Response,=20=ED=94=BC=EB=93=9C=EB=B0=B1=20=EC=BB=A4=EB=A7=A8?= =?UTF-8?q?=EB=93=9C=20=EC=84=9C=EB=B9=84=EC=8A=A4=20=EC=9E=91=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dto/request/FeedbackRequest.java | 14 +++++ .../dto/response/FeedbackResponse.java | 19 ++++++ .../service/FeedbackCommandService.java | 30 +++++++++ .../domain/aggregate/vo/FeedbackWriterVO.java | 18 ++++++ .../repository/FeedbackCommandRepository.java | 9 +++ .../service/FeedbackQueryService.java | 26 ++++++++ .../repository/FeedbackQueryRepository.java | 9 +++ .../FeedbackCommandControllerTest.java | 9 +++ .../service/FeedbackCommandServiceTest.java | 63 +++++++++++++++++++ .../FeedbackCommandDomainServiceTest.java | 9 +++ .../FeedbackQueryControllerTest.java | 9 +++ .../service/FeedbackQueryServiceTest.java | 24 +++++++ 12 files changed, 239 insertions(+) create mode 100644 src/main/java/com/loveloveshot/feedback/command/application/dto/request/FeedbackRequest.java create mode 100644 src/main/java/com/loveloveshot/feedback/command/application/dto/response/FeedbackResponse.java create mode 100644 src/main/java/com/loveloveshot/feedback/command/application/service/FeedbackCommandService.java create mode 100644 src/main/java/com/loveloveshot/feedback/command/domain/aggregate/vo/FeedbackWriterVO.java create mode 100644 src/main/java/com/loveloveshot/feedback/command/domain/repository/FeedbackCommandRepository.java create mode 100644 src/main/java/com/loveloveshot/feedback/query/application/service/FeedbackQueryService.java create mode 100644 src/main/java/com/loveloveshot/feedback/query/domain/repository/FeedbackQueryRepository.java create mode 100644 src/test/java/com/loveloveshot/feedback/command/application/controller/FeedbackCommandControllerTest.java create mode 100644 src/test/java/com/loveloveshot/feedback/command/application/service/FeedbackCommandServiceTest.java create mode 100644 src/test/java/com/loveloveshot/feedback/command/domain/service/FeedbackCommandDomainServiceTest.java create mode 100644 src/test/java/com/loveloveshot/feedback/query/application/controller/FeedbackQueryControllerTest.java create mode 100644 src/test/java/com/loveloveshot/feedback/query/application/service/FeedbackQueryServiceTest.java diff --git a/src/main/java/com/loveloveshot/feedback/command/application/dto/request/FeedbackRequest.java b/src/main/java/com/loveloveshot/feedback/command/application/dto/request/FeedbackRequest.java new file mode 100644 index 0000000..a3b9de7 --- /dev/null +++ b/src/main/java/com/loveloveshot/feedback/command/application/dto/request/FeedbackRequest.java @@ -0,0 +1,14 @@ +package com.loveloveshot.feedback.command.application.dto.request; + +import lombok.AllArgsConstructor; +import lombok.Getter; +import lombok.NoArgsConstructor; +import lombok.Setter; + +@Getter +@Setter +@NoArgsConstructor +@AllArgsConstructor +public class FeedbackRequest { + private String feedbackContent; +} diff --git a/src/main/java/com/loveloveshot/feedback/command/application/dto/response/FeedbackResponse.java b/src/main/java/com/loveloveshot/feedback/command/application/dto/response/FeedbackResponse.java new file mode 100644 index 0000000..738d0af --- /dev/null +++ b/src/main/java/com/loveloveshot/feedback/command/application/dto/response/FeedbackResponse.java @@ -0,0 +1,19 @@ +package com.loveloveshot.feedback.command.application.dto.response; + +import lombok.AllArgsConstructor; +import lombok.Getter; +import lombok.NoArgsConstructor; +import lombok.Setter; + +@Getter +@Setter +@NoArgsConstructor +@AllArgsConstructor +public class FeedbackResponse { + private Long feedbackNo; + private String feedbackContent; + +// private Date feedbackDate; +// private String feedbackTitle; +// private FeedbackWriterVO feedbackWriterVO; +} diff --git a/src/main/java/com/loveloveshot/feedback/command/application/service/FeedbackCommandService.java b/src/main/java/com/loveloveshot/feedback/command/application/service/FeedbackCommandService.java new file mode 100644 index 0000000..b551ee8 --- /dev/null +++ b/src/main/java/com/loveloveshot/feedback/command/application/service/FeedbackCommandService.java @@ -0,0 +1,30 @@ +package com.loveloveshot.feedback.command.application.service; + +import com.loveloveshot.feedback.command.application.dto.request.FeedbackRequest; +import com.loveloveshot.feedback.command.application.dto.response.FeedbackResponse; +import com.loveloveshot.feedback.command.domain.aggregate.entity.Feedback; +import com.loveloveshot.feedback.command.domain.repository.FeedbackCommandRepository; +import lombok.RequiredArgsConstructor; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +@Service +@RequiredArgsConstructor +public class FeedbackCommandService { + private final FeedbackCommandRepository feedbackCommandRepository; + + @Transactional + public FeedbackResponse submitFeedback(FeedbackRequest feedbackRequest) { + Feedback feedback = new Feedback.Builder() + .feedbackContent(feedbackRequest.getFeedbackContent()) + .build(); + + Feedback savedFeedback = feedbackCommandRepository.saveAndFlush(feedback); + + return new FeedbackResponse( + savedFeedback.getFeedbackNo(), + savedFeedback.getFeedbackContent() + ); + } + +} diff --git a/src/main/java/com/loveloveshot/feedback/command/domain/aggregate/vo/FeedbackWriterVO.java b/src/main/java/com/loveloveshot/feedback/command/domain/aggregate/vo/FeedbackWriterVO.java new file mode 100644 index 0000000..fd4d203 --- /dev/null +++ b/src/main/java/com/loveloveshot/feedback/command/domain/aggregate/vo/FeedbackWriterVO.java @@ -0,0 +1,18 @@ +package com.loveloveshot.feedback.command.domain.aggregate.vo; + +import lombok.AccessLevel; +import lombok.AllArgsConstructor; +import lombok.Getter; +import lombok.NoArgsConstructor; + +import javax.persistence.Column; +import javax.persistence.Embeddable; + +@Getter +@Embeddable +@AllArgsConstructor +@NoArgsConstructor(access = AccessLevel.PROTECTED) +public class FeedbackWriterVO { + @Column + private Long feedbackWriterId; +} diff --git a/src/main/java/com/loveloveshot/feedback/command/domain/repository/FeedbackCommandRepository.java b/src/main/java/com/loveloveshot/feedback/command/domain/repository/FeedbackCommandRepository.java new file mode 100644 index 0000000..914bee4 --- /dev/null +++ b/src/main/java/com/loveloveshot/feedback/command/domain/repository/FeedbackCommandRepository.java @@ -0,0 +1,9 @@ +package com.loveloveshot.feedback.command.domain.repository; + +import com.loveloveshot.feedback.command.domain.aggregate.entity.Feedback; +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.stereotype.Repository; + +@Repository +public interface FeedbackCommandRepository extends JpaRepository { +} diff --git a/src/main/java/com/loveloveshot/feedback/query/application/service/FeedbackQueryService.java b/src/main/java/com/loveloveshot/feedback/query/application/service/FeedbackQueryService.java new file mode 100644 index 0000000..0fc95d6 --- /dev/null +++ b/src/main/java/com/loveloveshot/feedback/query/application/service/FeedbackQueryService.java @@ -0,0 +1,26 @@ +package com.loveloveshot.feedback.query.application.service; + +import com.loveloveshot.feedback.query.domain.repository.FeedbackQueryRepository; +import lombok.RequiredArgsConstructor; +import org.springframework.stereotype.Service; + +@Service +@RequiredArgsConstructor +public class FeedbackQueryService { + private final FeedbackQueryRepository feedbackQueryRepository; + +// // 특정 회원 피드백 전체 조회 +// @Transactional(readOnly = true) +// public FeedbackResponse findAllByUserNo() { +// +// return null; +// } +// +// // 모든 회원 피드백 전체 조회 +// @Transactional(readOnly = true) +// public FeedbackResponse findAll() { +// +// return null; +// } + +} diff --git a/src/main/java/com/loveloveshot/feedback/query/domain/repository/FeedbackQueryRepository.java b/src/main/java/com/loveloveshot/feedback/query/domain/repository/FeedbackQueryRepository.java new file mode 100644 index 0000000..6a149f5 --- /dev/null +++ b/src/main/java/com/loveloveshot/feedback/query/domain/repository/FeedbackQueryRepository.java @@ -0,0 +1,9 @@ +package com.loveloveshot.feedback.query.domain.repository; + +import com.loveloveshot.feedback.command.domain.aggregate.entity.Feedback; +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.stereotype.Repository; + +@Repository +public interface FeedbackQueryRepository extends JpaRepository { +} diff --git a/src/test/java/com/loveloveshot/feedback/command/application/controller/FeedbackCommandControllerTest.java b/src/test/java/com/loveloveshot/feedback/command/application/controller/FeedbackCommandControllerTest.java new file mode 100644 index 0000000..2fabcba --- /dev/null +++ b/src/test/java/com/loveloveshot/feedback/command/application/controller/FeedbackCommandControllerTest.java @@ -0,0 +1,9 @@ +package com.loveloveshot.feedback.command.application.controller; + +import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.transaction.annotation.Transactional; + +@SpringBootTest +@Transactional +public class FeedbackCommandControllerTest { +} diff --git a/src/test/java/com/loveloveshot/feedback/command/application/service/FeedbackCommandServiceTest.java b/src/test/java/com/loveloveshot/feedback/command/application/service/FeedbackCommandServiceTest.java new file mode 100644 index 0000000..2e920d8 --- /dev/null +++ b/src/test/java/com/loveloveshot/feedback/command/application/service/FeedbackCommandServiceTest.java @@ -0,0 +1,63 @@ +package com.loveloveshot.feedback.command.application.service; + +import com.loveloveshot.feedback.command.application.dto.request.FeedbackRequest; +import com.loveloveshot.feedback.command.domain.aggregate.entity.Feedback; +import com.loveloveshot.feedback.command.domain.repository.FeedbackCommandRepository; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.DisplayName; +import org.junit.jupiter.api.Test; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.transaction.annotation.Transactional; + +@SpringBootTest +@Transactional +public class FeedbackCommandServiceTest { + FeedbackRequest feedbackRequest = new FeedbackRequest(); + + @Autowired + private FeedbackCommandService feedbackCommandService; + @Autowired + private FeedbackCommandRepository feedbackCommandRepository; + + @BeforeEach + public void setUp() { + Feedback feedback = new Feedback.Builder() + .feedbackContent("정말 훌륭합니다.") + .build(); + + feedbackRequest.setFeedbackContent(feedback.getFeedbackContent()); + } + + @Test + @DisplayName("피드백 제출 테스트 : success") + void submitFeedbackTest() { + long before = feedbackCommandRepository.count(); + + feedbackCommandService.submitFeedback(feedbackRequest); + + long after = feedbackCommandRepository.count(); + + Assertions.assertEquals(before + 1, after); + } + +// @Test +// @DisplayName("특정 피드백 삭제 테스트 : ") +// void deleteFeedbackByFeedbackNoTest() { +// +// } +// +// @Test +// @DisplayName("피드백 전체 삭제 테스트 : 특정 회원") +// void deleteFeedbackByUserNoTest() { +// +// } +// +// @Test +// @DisplayName("피드백 전체 삭제 테스트 : 모든 회원") +// void deleteAllFeedbackTest() { +// +// } + +} diff --git a/src/test/java/com/loveloveshot/feedback/command/domain/service/FeedbackCommandDomainServiceTest.java b/src/test/java/com/loveloveshot/feedback/command/domain/service/FeedbackCommandDomainServiceTest.java new file mode 100644 index 0000000..fac4085 --- /dev/null +++ b/src/test/java/com/loveloveshot/feedback/command/domain/service/FeedbackCommandDomainServiceTest.java @@ -0,0 +1,9 @@ +package com.loveloveshot.feedback.command.domain.service; + +import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.transaction.annotation.Transactional; + +@SpringBootTest +@Transactional +public class FeedbackCommandDomainServiceTest { +} diff --git a/src/test/java/com/loveloveshot/feedback/query/application/controller/FeedbackQueryControllerTest.java b/src/test/java/com/loveloveshot/feedback/query/application/controller/FeedbackQueryControllerTest.java new file mode 100644 index 0000000..7d4decf --- /dev/null +++ b/src/test/java/com/loveloveshot/feedback/query/application/controller/FeedbackQueryControllerTest.java @@ -0,0 +1,9 @@ +package com.loveloveshot.feedback.query.application.controller; + +import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.transaction.annotation.Transactional; + +@SpringBootTest +@Transactional +public class FeedbackQueryControllerTest { +} diff --git a/src/test/java/com/loveloveshot/feedback/query/application/service/FeedbackQueryServiceTest.java b/src/test/java/com/loveloveshot/feedback/query/application/service/FeedbackQueryServiceTest.java new file mode 100644 index 0000000..1cb13cc --- /dev/null +++ b/src/test/java/com/loveloveshot/feedback/query/application/service/FeedbackQueryServiceTest.java @@ -0,0 +1,24 @@ +package com.loveloveshot.feedback.query.application.service; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.transaction.annotation.Transactional; + +@SpringBootTest +@Transactional +public class FeedbackQueryServiceTest { + @Autowired + private FeedbackQueryService feedbackQueryService; + +// @Test +// @DisplayName("피드백 전체 조회 테스트 : 특정 회원") +// public void findAllFeedbackByUserNoTest() { +// +// } +// +// @Test +// @DisplayName("피드백 전체 조회 테스트 : 모든 회원") +// public void findAllFeedbackTest() { +// +// } +}