Skip to content

Commit

Permalink
test: 질문 제목, 부제목 조회 테스트
Browse files Browse the repository at this point in the history
Co-Authored-By: tkdgur0906 <[email protected]>
  • Loading branch information
shin-jisong and tkdgur0906 committed Jul 24, 2024
1 parent 422e540 commit e4a6be9
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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("천장, 벽면, 가구 뒤, 장판을 확인하세요.");
}
}

0 comments on commit e4a6be9

Please sign in to comment.