From 2965398a8c8c784f019105025457d6777481ce89 Mon Sep 17 00:00:00 2001 From: rladmstn Date: Tue, 5 Nov 2024 23:55:15 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20isVisible=20=ED=83=80=EC=9E=85=20?= =?UTF-8?q?=EC=88=98=EC=A0=95=EC=97=90=20=EB=94=B0=EB=A5=B8=20=EC=98=A4?= =?UTF-8?q?=EB=A5=98=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../feature/group/studygroup/service/StudyGroupService.java | 2 +- .../com/gamzabat/algohub/service/StudyGroupServiceTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gamzabat/algohub/feature/group/studygroup/service/StudyGroupService.java b/src/main/java/com/gamzabat/algohub/feature/group/studygroup/service/StudyGroupService.java index 77731cde..f668bc2b 100644 --- a/src/main/java/com/gamzabat/algohub/feature/group/studygroup/service/StudyGroupService.java +++ b/src/main/java/com/gamzabat/algohub/feature/group/studygroup/service/StudyGroupService.java @@ -218,7 +218,7 @@ private GetStudyGroupResponse getStudyGroupResponseDTO(User user, StudyGroup gro GroupMember member = groupMemberRepository.findByUserAndStudyGroup(user, group) .orElseThrow(() -> new GroupMemberValidationException(HttpStatus.FORBIDDEN.value(), "참여하지 않은 스터디 그룹입니다.")); return GetStudyGroupResponse.toDTO(group, user, isBookmarked(user, group), getStudyGroupOwner(group), - member.isVisible()); + member.getIsVisible()); } private User getStudyGroupOwner(StudyGroup group) { diff --git a/src/test/java/com/gamzabat/algohub/service/StudyGroupServiceTest.java b/src/test/java/com/gamzabat/algohub/service/StudyGroupServiceTest.java index 3ccd0e35..7738e46a 100644 --- a/src/test/java/com/gamzabat/algohub/service/StudyGroupServiceTest.java +++ b/src/test/java/com/gamzabat/algohub/service/StudyGroupServiceTest.java @@ -679,7 +679,7 @@ void editGroupVisibility() { // when studyGroupService.editStudyGroupVisibility(user, request); // then - assertThat(groupMember1.isVisible()).isFalse(); + assertThat(groupMember1.getIsVisible()).isFalse(); } @Test