Skip to content

Commit a18ca47

Browse files
committed
fix assertions
1 parent 541c1f6 commit a18ca47

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/test/java/com/amadeus/referenceData/locations/HotelIT.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import static com.github.tomakehurst.wiremock.client.WireMock.post;
66
import static com.github.tomakehurst.wiremock.client.WireMock.urlEqualTo;
77
import static org.junit.jupiter.api.Assertions.assertEquals;
8+
import static org.junit.jupiter.api.Assertions.assertNotEquals;
89
import static org.junit.jupiter.api.Assertions.assertNotNull;
910
import static org.junit.jupiter.api.Assertions.assertTrue;
1011

@@ -196,6 +197,6 @@ public void givenClientWhenCallHotelOffersSearchWithParamsThenOK()
196197
);
197198

198199
//Then
199-
then(result.length).isNotEqualTo(0);
200+
assertNotEquals(0, result.length);
200201
}
201202
}

src/test/java/com/amadeus/travel/TripParserIT.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import static com.github.tomakehurst.wiremock.client.WireMock.aResponse;
44
import static com.github.tomakehurst.wiremock.client.WireMock.post;
55
import static com.github.tomakehurst.wiremock.client.WireMock.urlEqualTo;
6-
import static org.assertj.core.api.BDDAssertions.then;
6+
import static org.junit.jupiter.api.Assertions.assertNotNull;
77

88
import com.amadeus.Amadeus;
99
import com.amadeus.exceptions.ResponseException;
@@ -72,7 +72,7 @@ public void given_client_when_call_trip_parser_with_params_then_ok()
7272
TripDetail result = amadeus.travel.tripParser.post(request);
7373

7474
//Then
75-
then(result).isNotNull();
75+
assertNotNull(result);
7676
}
7777

7878
@Test
@@ -92,7 +92,7 @@ public void given_client_when_call_trip_parser_with_params_alternative_1_then_ok
9292
TripDetail result = amadeus.travel.tripParser.post(request);
9393

9494
//Then
95-
then(result).isNotNull();
95+
assertNotNull(result);
9696
}
9797

9898
private JsonObject getRequestFromResources(String jsonFile) throws IOException {

0 commit comments

Comments
 (0)