Skip to content

Commit

Permalink
[#150] test: 테스트 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
shin-mallang committed Dec 12, 2023
1 parent 352f3f8 commit 58256ec
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,19 @@
@DisplayNameGeneration(ReplaceUnderscores.class)
class PostCategoryQueryServiceTest extends ServiceTest {

@Test
void 카테고리_목록이_없는_경우_빈_리스트_반환() {
// given
var memberId = 회원을_저장한다("동훈");
var 동훈_블로그_이름 = 블로그_개설(memberId, "donghun");

// when
List<PostCategoryResponse> result = postCategoryQueryService.findAllByBlogName(동훈_블로그_이름);

// then
assertThat(result).isEmpty();
}

@Test
void 특정_블로그의_카테고리를_순서대로_전체_조회한다() {
// given
Expand Down

0 comments on commit 58256ec

Please sign in to comment.