Skip to content

Commit

Permalink
[fix] #82 QuestionDomainTest 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
kmjenny committed Jun 7, 2024
1 parent 25d3979 commit 800420b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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");
}
}
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 800420b

Please sign in to comment.