From e4a6be987a22d8aa42fa422f380bb93cb18dec77 Mon Sep 17 00:00:00 2001 From: shin-jisong <86762272+shin-jisong@users.noreply.github.com> Date: Wed, 24 Jul 2024 18:56:30 +0900 Subject: [PATCH] =?UTF-8?q?test:=20=EC=A7=88=EB=AC=B8=20=EC=A0=9C=EB=AA=A9?= =?UTF-8?q?,=20=EB=B6=80=EC=A0=9C=EB=AA=A9=20=EC=A1=B0=ED=9A=8C=20?= =?UTF-8?q?=ED=85=8C=EC=8A=A4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: tkdgur0906 <39580658+tkdgur0906@users.noreply.github.com> --- .../checklist/domain/QuestionlistTest.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/backend/bang-ggood/src/test/java/com/bang_ggood/checklist/domain/QuestionlistTest.java b/backend/bang-ggood/src/test/java/com/bang_ggood/checklist/domain/QuestionlistTest.java index 733b7d436..969470738 100644 --- a/backend/bang-ggood/src/test/java/com/bang_ggood/checklist/domain/QuestionlistTest.java +++ b/backend/bang-ggood/src/test/java/com/bang_ggood/checklist/domain/QuestionlistTest.java @@ -26,4 +26,18 @@ void contains_true() { void contains_false() { assertThat(questionList.contains(9999)).isFalse(); } + + @DisplayName("질문 제목 조회 성공") + @Test + void getTitle() { + assertThat(questionList.getTitleByQuestionId(1)) + .isEqualTo("방 안에 물이 새거나 곰팡이가 핀 곳은 없나요?"); + } + + @DisplayName("질문 부제목 조회 성공") + @Test + void getSubtitle() { + assertThat(questionList.getSubtitleByQuestionId(1)) + .isEqualTo("천장, 벽면, 가구 뒤, 장판을 확인하세요."); + } }