Skip to content

Commit

Permalink
fix: 더미데이터 사용하도록 테스트 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Dae-Hwa committed May 31, 2021
1 parent 3cf2ad9 commit bf8b057
Showing 1 changed file with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

import java.time.LocalDate;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;

import static org.assertj.core.api.BDDAssertions.then;
Expand Down Expand Up @@ -52,21 +51,16 @@ static Stream<Arguments> readAllProvider() {
return Stream.of(
Arguments.of(
AccommodationRequest.builder().build(),
AccommodationDummyDataFactory.listWithId().stream()
.collect(Collectors.toList()),
AccommodationResponseDummyDataFactory.listWithIdTypeOneNight().stream()
.collect(Collectors.toList())
AccommodationDummyDataFactory.listWithId(),
AccommodationResponseDummyDataFactory.listWithIdTypeOneNight()
),
Arguments.of(
AccommodationRequest.builder()
.checkinDate(LocalDate.now())
.checkoutDate(LocalDate.now().plusDays(2))
.build(),
AccommodationDummyDataFactory.listWithId().stream()
.collect(Collectors.toList()),
AccommodationDummyDataFactory.listWithId().stream()
.map(accommodation -> AccommodationResponse.of(accommodation, 2))
.collect(Collectors.toList())
AccommodationDummyDataFactory.listWithId(),
AccommodationResponseDummyDataFactory.listWithIdTypeTwoNights()
)
);
}
Expand Down

0 comments on commit bf8b057

Please sign in to comment.