Skip to content

Commit

Permalink
fix : 테스트 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
seokho-1116 committed Jun 8, 2024
1 parent a7ad5f1 commit 912f49a
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
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;
import site.timecapsulearchive.core.domain.capsule.generic_capsule.data.dto.CapsuleDetailDto;
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;
Expand Down Expand Up @@ -187,15 +187,14 @@ void setup(@Autowired EntityManager entityManager) {
ZonedDateTime now = ZonedDateTime.now().plusDays(1);

//when
Slice<MyGroupCapsuleDto> groupCapsules = groupCapsuleQueryRepository.findMyGroupCapsuleSlice(
Slice<CapsuleBasicInfoDto> 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));
});
}
}

0 comments on commit 912f49a

Please sign in to comment.