Skip to content

Commit

Permalink
fix(#53): fix DTO NPE at test
Browse files Browse the repository at this point in the history
  • Loading branch information
KimDoubleB committed Jan 22, 2023
1 parent 0e3c52a commit 6c63625
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import site.archive.common.exception.common.UnauthorizedResourceException;
import site.archive.domain.archive.Archive;
import site.archive.domain.archive.ArchiveRepository;
import site.archive.domain.archive.CoverImageType;
import site.archive.domain.archive.Emotion;
import site.archive.domain.user.BaseUser;
import site.archive.domain.user.UserInfo;
Expand Down Expand Up @@ -158,6 +159,7 @@ void cannotViewPrivateSpecificArchiveWhenOtherArchive() {
private List<Archive> dummyArchives(BaseUser user) {
return List.of(
Archive.builder()
.id(1L)
.name("archive_1")
.author(user)
.watchedOn(LocalDate.now())
Expand All @@ -167,6 +169,7 @@ private List<Archive> dummyArchives(BaseUser user) {
.isPublic(true)
.build(),
Archive.builder()
.id(2L)
.name("archive_2")
.author(user)
.watchedOn(LocalDate.now())
Expand All @@ -188,6 +191,7 @@ private Archive dummyArchive(long archiveId, BaseUser user, boolean isPublic) {
.mainImage("main_image_1")
.companions(Collections.emptyList())
.isPublic(isPublic)
.coverImageType(CoverImageType.EMOTION_COVER)
.build();
}

Expand Down

0 comments on commit 6c63625

Please sign in to comment.