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 5
5
import static com .github .tomakehurst .wiremock .client .WireMock .post ;
6
6
import static com .github .tomakehurst .wiremock .client .WireMock .urlEqualTo ;
7
7
import static org .junit .jupiter .api .Assertions .assertEquals ;
8
+ import static org .junit .jupiter .api .Assertions .assertNotEquals ;
8
9
import static org .junit .jupiter .api .Assertions .assertNotNull ;
9
10
import static org .junit .jupiter .api .Assertions .assertTrue ;
10
11
@@ -196,6 +197,6 @@ public void givenClientWhenCallHotelOffersSearchWithParamsThenOK()
196
197
);
197
198
198
199
//Then
199
- then ( result .length ). isNotEqualTo ( 0 );
200
+ assertNotEquals ( 0 , result .length );
200
201
}
201
202
}
Original file line number Diff line number Diff line change 3
3
import static com .github .tomakehurst .wiremock .client .WireMock .aResponse ;
4
4
import static com .github .tomakehurst .wiremock .client .WireMock .post ;
5
5
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 ;
7
7
8
8
import com .amadeus .Amadeus ;
9
9
import com .amadeus .exceptions .ResponseException ;
@@ -72,7 +72,7 @@ public void given_client_when_call_trip_parser_with_params_then_ok()
72
72
TripDetail result = amadeus .travel .tripParser .post (request );
73
73
74
74
//Then
75
- then (result ). isNotNull ( );
75
+ assertNotNull (result );
76
76
}
77
77
78
78
@ Test
@@ -92,7 +92,7 @@ public void given_client_when_call_trip_parser_with_params_alternative_1_then_ok
92
92
TripDetail result = amadeus .travel .tripParser .post (request );
93
93
94
94
//Then
95
- then (result ). isNotNull ( );
95
+ assertNotNull (result );
96
96
}
97
97
98
98
private JsonObject getRequestFromResources (String jsonFile ) throws IOException {
You can’t perform that action at this time.
0 commit comments