From db88cc8600f463c231749e0dd27615f6875104f8 Mon Sep 17 00:00:00 2001 From: bo Date: Tue, 30 Apr 2024 20:02:54 +0900 Subject: [PATCH] =?UTF-8?q?refactor(thumbsup):=20Assertions=20import=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../thumbsup/service/QueryThumbsUpServiceTest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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);