diff --git a/src/test/java/com/project/bumawiki/domain/thumbsup/service/QueryThumbsUpServiceTest.java b/src/test/java/com/project/bumawiki/domain/thumbsup/service/QueryThumbsUpServiceTest.java index 22aecc6..c1ddcde 100644 --- a/src/test/java/com/project/bumawiki/domain/thumbsup/service/QueryThumbsUpServiceTest.java +++ b/src/test/java/com/project/bumawiki/domain/thumbsup/service/QueryThumbsUpServiceTest.java @@ -1,10 +1,10 @@ package com.project.bumawiki.domain.thumbsup.service; import static org.assertj.core.api.Assertions.*; +import static org.junit.jupiter.api.Assertions.*; import java.util.List; -import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Nested; import org.junit.jupiter.api.RepeatedTest; import org.springframework.beans.factory.annotation.Autowired; @@ -85,9 +85,9 @@ class 문서_좋아하는지_확인 { thumbsUpRepository.save(new ThumbsUp(user, docs)); boolean shouldTrue = queryThumbsUpService.checkUserLikeThisDocs(docs.getId(), user); //then - Assertions.assertAll( - () -> Assertions.assertFalse(shouldFalse), - () -> Assertions.assertTrue(shouldTrue) + assertAll( + () -> assertFalse(shouldFalse), + () -> assertTrue(shouldTrue) ); } @@ -99,7 +99,7 @@ class 문서_좋아하는지_확인 { userRepository.save(user); //when, then - BumawikiException bumawikiException = Assertions.assertThrows(BumawikiException.class, + BumawikiException bumawikiException = assertThrows(BumawikiException.class, () -> queryThumbsUpService.checkUserLikeThisDocs(docsId, user)); assertThat(bumawikiException.getErrorCode()).isEqualTo(ErrorCode.DOCS_NOT_FOUND);