From 912f49a6f8ded2c78ea4f641de1eb471ec65996e Mon Sep 17 00:00:00 2001 From: hong seokho Date: Sat, 8 Jun 2024 19:53:11 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20=ED=85=8C=EC=8A=A4=ED=8A=B8=20?= =?UTF-8?q?=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../repository/GroupCapsuleQueryRepositoryTest.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/backend/core/src/test/java/site/timecapsulearchive/core/domain/capsule/group_capsule/repository/GroupCapsuleQueryRepositoryTest.java b/backend/core/src/test/java/site/timecapsulearchive/core/domain/capsule/group_capsule/repository/GroupCapsuleQueryRepositoryTest.java index 47f1036fa..e74d162de 100644 --- a/backend/core/src/test/java/site/timecapsulearchive/core/domain/capsule/group_capsule/repository/GroupCapsuleQueryRepositoryTest.java +++ b/backend/core/src/test/java/site/timecapsulearchive/core/domain/capsule/group_capsule/repository/GroupCapsuleQueryRepositoryTest.java @@ -22,6 +22,7 @@ import site.timecapsulearchive.core.common.fixture.domain.GroupFixture; import site.timecapsulearchive.core.common.fixture.domain.MemberFixture; import site.timecapsulearchive.core.common.fixture.domain.MemberGroupFixture; +import site.timecapsulearchive.core.domain.capsule.data.dto.CapsuleBasicInfoDto; import site.timecapsulearchive.core.domain.capsule.entity.Capsule; import site.timecapsulearchive.core.domain.capsule.entity.CapsuleType; import site.timecapsulearchive.core.domain.capsule.entity.GroupCapsuleOpen; @@ -29,7 +30,6 @@ import site.timecapsulearchive.core.domain.capsule.generic_capsule.data.dto.CapsuleSummaryDto; import site.timecapsulearchive.core.domain.capsule.group_capsule.data.dto.GroupCapsuleDetailDto; import site.timecapsulearchive.core.domain.capsule.group_capsule.data.dto.GroupCapsuleSummaryDto; -import site.timecapsulearchive.core.domain.capsule.group_capsule.data.dto.MyGroupCapsuleDto; import site.timecapsulearchive.core.domain.capsuleskin.entity.CapsuleSkin; import site.timecapsulearchive.core.domain.group.data.dto.GroupMemberSummaryDto; import site.timecapsulearchive.core.domain.group.entity.Group; @@ -187,15 +187,14 @@ void setup(@Autowired EntityManager entityManager) { ZonedDateTime now = ZonedDateTime.now().plusDays(1); //when - Slice groupCapsules = groupCapsuleQueryRepository.findMyGroupCapsuleSlice( + Slice groupCapsules = groupCapsuleQueryRepository.findMyGroupCapsuleSlice( groupLeaderId, size, now); //then SoftAssertions.assertSoftly(softly -> { assertThat(groupCapsules.hasContent()).isTrue(); - assertThat(groupCapsules).allMatch( - capsule -> capsule.capsuleType().equals(CapsuleType.GROUP)); - assertThat(groupCapsules).allMatch(capsule -> capsule.createdAt().isBefore(now)); + assertThat(groupCapsules).allMatch(c-> c.capsuleType().equals(CapsuleType.GROUP)); + assertThat(groupCapsules).allMatch(c -> c.createdAt().isBefore(now)); }); } } \ No newline at end of file