Skip to content

Commit

Permalink
Merge pull request #56 from APPS-sookmyung/dev
Browse files Browse the repository at this point in the history
[Del] Duplicate Service Test 제거
  • Loading branch information
ajung7038 authored Aug 7, 2024
2 parents 585ae20 + 138e1c8 commit 10f1dc2
Showing 1 changed file with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,4 @@ public void saveCheckPage() throws Exception {
// then
assertThat(checkPageResponse.animal()).isEqualTo("고양이");
}

@Test
@DisplayName("[예외] 중복 도장판")
public void duplicateSaveCheckPage() throws Exception {
// when
when(checkPageRepository.findByTitle(any())).thenThrow(new CheckPageException(CheckPageErrorCode.CHECKPAGE_DUPLICATION));


// then
CheckPageException e = assertThrows(CheckPageException.class, () -> {
checkPageService.saveCheckPage(dto);
});

assertThat(CheckPageErrorCode.CHECKPAGE_DUPLICATION).isEqualTo(e.getCode());
}

}

0 comments on commit 10f1dc2

Please sign in to comment.