File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
src/test/java/com/amadeus Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 55import static com .github .tomakehurst .wiremock .client .WireMock .post ;
66import static com .github .tomakehurst .wiremock .client .WireMock .urlEqualTo ;
77import static org .junit .jupiter .api .Assertions .assertEquals ;
8+ import static org .junit .jupiter .api .Assertions .assertNotEquals ;
89import static org .junit .jupiter .api .Assertions .assertNotNull ;
910import 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}
Original file line number Diff line number Diff line change 33import static com .github .tomakehurst .wiremock .client .WireMock .aResponse ;
44import static com .github .tomakehurst .wiremock .client .WireMock .post ;
55import 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
88import com .amadeus .Amadeus ;
99import 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 {
You can’t perform that action at this time.
0 commit comments