From 800420bbcba0144234306bf34765ae23a1426bf7 Mon Sep 17 00:00:00 2001 From: jenny <88226911+kmjenny@users.noreply.github.com> Date: Fri, 7 Jun 2024 14:10:34 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20#82=20QuestionDomainTest=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{answer => answerTest}/AnswerDomainTest.java | 10 +++++----- .../server/{auth => authTest}/AuthServiceTest.java | 2 +- .../{question => questionTest}/QuestionDomainTest.java | 2 +- .../QuestionServiceTest.java | 0 4 files changed, 7 insertions(+), 7 deletions(-) rename src/test/java/com/telepigeon/server/{answer => answerTest}/AnswerDomainTest.java (72%) rename src/test/java/com/telepigeon/server/{auth => authTest}/AuthServiceTest.java (99%) rename src/test/java/com/telepigeon/server/{question => questionTest}/QuestionDomainTest.java (95%) rename src/test/java/com/telepigeon/server/{question => questionTest}/QuestionServiceTest.java (100%) diff --git a/src/test/java/com/telepigeon/server/answer/AnswerDomainTest.java b/src/test/java/com/telepigeon/server/answerTest/AnswerDomainTest.java similarity index 72% rename from src/test/java/com/telepigeon/server/answer/AnswerDomainTest.java rename to src/test/java/com/telepigeon/server/answerTest/AnswerDomainTest.java index 53cbe70..4c67c1f 100644 --- a/src/test/java/com/telepigeon/server/answer/AnswerDomainTest.java +++ b/src/test/java/com/telepigeon/server/answerTest/AnswerDomainTest.java @@ -1,4 +1,4 @@ -package com.telepigeon.server.answer; +package com.telepigeon.server.answerTest; import com.telepigeon.server.domain.Answer; import com.telepigeon.server.dto.answer.request.AnswerCreateDto; @@ -10,16 +10,16 @@ public class AnswerDomainTest { @Test @DisplayName("Answer 객체 생성") void createAnswerTest(){ - AnswerCreateDto answerCreateDto = new AnswerCreateDto("content", "image"); - Answer answer = Answer.create(answerCreateDto, 0.0, null, null); + AnswerCreateDto answerCreateDto = new AnswerCreateDto("content", null); + Answer answer = Answer.create(answerCreateDto.content(), null, null, null, null); Assertions.assertNotNull(answer); } @Test @DisplayName("Answer 객체 생성 확인") void checkCreateAnswerTest(){ - AnswerCreateDto answerCreateDto = new AnswerCreateDto("content", "image"); - Answer answer = Answer.create(answerCreateDto, 0.0, null, null); + AnswerCreateDto answerCreateDto = new AnswerCreateDto("content", null); + Answer answer = Answer.create(answerCreateDto.content(), null, null, null, null); Assertions.assertEquals(answer.getContent(), "content"); } } diff --git a/src/test/java/com/telepigeon/server/auth/AuthServiceTest.java b/src/test/java/com/telepigeon/server/authTest/AuthServiceTest.java similarity index 99% rename from src/test/java/com/telepigeon/server/auth/AuthServiceTest.java rename to src/test/java/com/telepigeon/server/authTest/AuthServiceTest.java index 5a1aee6..9a51ec5 100644 --- a/src/test/java/com/telepigeon/server/auth/AuthServiceTest.java +++ b/src/test/java/com/telepigeon/server/authTest/AuthServiceTest.java @@ -1,4 +1,4 @@ -package com.telepigeon.server.auth; +package com.telepigeon.server.authTest; import com.telepigeon.server.domain.User; import com.telepigeon.server.dto.auth.response.JwtTokensDto; diff --git a/src/test/java/com/telepigeon/server/question/QuestionDomainTest.java b/src/test/java/com/telepigeon/server/questionTest/QuestionDomainTest.java similarity index 95% rename from src/test/java/com/telepigeon/server/question/QuestionDomainTest.java rename to src/test/java/com/telepigeon/server/questionTest/QuestionDomainTest.java index e184568..5183f20 100644 --- a/src/test/java/com/telepigeon/server/question/QuestionDomainTest.java +++ b/src/test/java/com/telepigeon/server/questionTest/QuestionDomainTest.java @@ -1,4 +1,4 @@ -package com.telepigeon.server.question; +package com.telepigeon.server.questionTest; import com.telepigeon.server.domain.Question; import org.junit.jupiter.api.Assertions; diff --git a/src/test/java/com/telepigeon/server/question/QuestionServiceTest.java b/src/test/java/com/telepigeon/server/questionTest/QuestionServiceTest.java similarity index 100% rename from src/test/java/com/telepigeon/server/question/QuestionServiceTest.java rename to src/test/java/com/telepigeon/server/questionTest/QuestionServiceTest.java