diff --git a/BE/airbnb-be/src/test/java/com/codesquad/airbnb/accommodation/service/AccommodationServiceImplTest.java b/BE/airbnb-be/src/test/java/com/codesquad/airbnb/accommodation/service/AccommodationServiceImplTest.java index faddf2b74..d8e9ed676 100644 --- a/BE/airbnb-be/src/test/java/com/codesquad/airbnb/accommodation/service/AccommodationServiceImplTest.java +++ b/BE/airbnb-be/src/test/java/com/codesquad/airbnb/accommodation/service/AccommodationServiceImplTest.java @@ -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; @@ -52,21 +51,16 @@ static Stream 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() ) ); }