Skip to content

Commit 1cbadb3

Browse files
Updated test
1 parent 4e61bb5 commit 1cbadb3

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

src/main/java/com/jupiter/service/hotel/enums/Hotels.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public enum Hotels {
2323
HOTEL_GREEN_GARDEN("Green Garden Suites Hotel", LOCATION_ALANYA.getLocationName(), LOCATION_ALANYA.getLocationId(), 36.545233, 31.992696),
2424
HOTEL_HARMONY("Harmony Butik Otel", LOCATION_ALANYA.getLocationName(), LOCATION_ALANYA.getLocationId(), 36.545233, 31.992696),
2525
HOTEL_SUNWAY("Sunway Apart Hotel", LOCATION_ALANYA.getLocationName(), LOCATION_ALANYA.getLocationId(), 36.545233, 31.992696),
26+
HOTEL_BLUE_HEAVEN("Blue Heaven Apart Hotel", LOCATION_ALANYA.getLocationName(), LOCATION_ALANYA.getLocationId(), 36.545235, 31.992697),
2627
HOTEL_MUSTI("Musti Apart Hotel", LOCATION_ALANYA.getLocationName(), LOCATION_ALANYA.getLocationId(), 36.545233, 31.992696),
2728
HOTEL_TAC_PREMIER("Tac Premier Hotel & Spa", LOCATION_ALANYA.getLocationName(), LOCATION_ALANYA.getLocationId(), 36.54899, 31.98159);
2829

src/test/java/com/jupiter/api/hotel/HotelLivingCostTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,15 @@
2121
import static com.jupiter.service.hotel.enums.Locations.LOCATION_VALENCIA;
2222
import static com.jupiter.service.hotel.enums.RequestStatus.ERROR;
2323
import static com.jupiter.utils.DateTimeUtils.*;
24+
import static java.lang.String.format;
2425
import static org.junit.jupiter.api.Assertions.*;
2526

2627
public class HotelLivingCostTest extends BaseTest {
2728

2829
private static Stream<Arguments> hotelDataSet() {
2930
return Stream.of(
3031
Arguments.of(LOCATION_VALENCIA.getName(), List.of(HOTEL_LAS_ARENAS, HOTEL_EUROSTARS, HOTEL_MALCOM, HOTEL_VENECIA), 1),
31-
Arguments.of(LOCATION_ALANYA.getName(), List.of(HOTEL_GREEN_GARDEN, HOTEL_HARMONY, HOTEL_SUNWAY, HOTEL_MUSTI), 14)
32+
Arguments.of(LOCATION_ALANYA.getName(), List.of(HOTEL_GREEN_GARDEN, HOTEL_HARMONY, HOTEL_SUNWAY, HOTEL_BLUE_HEAVEN), 14)
3233
);
3334
}
3435

@@ -86,7 +87,7 @@ private void checkHotelDataAndPrice(List<Hotels> hotelListExpected, List<HotelPr
8687
.filter(hotel -> hotel.getHotelName().equals(hotelExpected.getHotelName()))
8788
.findFirst();
8889

89-
assertNotNull(hotelOpt.get());
90+
assertTrue(hotelOpt.isPresent(), format("Hotel name = '%s' is not found", hotelExpected.getHotelName()));
9091

9192
HotelPriceResponseDTO hotelActual = hotelOpt.get();
9293

src/test/java/com/jupiter/api/reqres/ReqresTest.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ public void userLoggedInSuccessfully() {
3131
assertEquals(tokenLengthExpected, userLoginResponseDTO.getToken().length());
3232
}
3333

34-
@Test
35-
public void checkFailing() {
36-
assertFalse(true);
37-
}
38-
3934
@Test
4035
public void userLoginWithoutPassword() {
4136
UserLoginRequestDTO userLoginRequestDTO = new UserLoginRequestDTO("peter@klaven", "");

0 commit comments

Comments
 (0)