@@ -154,12 +154,12 @@ public void perform_invalid_query_on_created_aggregated_object() throws Throwabl
154
154
.performRequest ();
155
155
156
156
String responseAsString = response .getBody ().toString ();
157
- int reponseStatusCode = response .getStatusCodeValue ();
158
- LOGGER .debug ("Response of /queryAggregatedObject RestApi, Status Code: " + reponseStatusCode + "\n Response: "
157
+ int responseStatusCode = response .getStatusCodeValue ();
158
+ LOGGER .debug ("Response of /queryAggregatedObject RestApi, Status Code: " + responseStatusCode + "\n Response: "
159
159
+ responseAsString );
160
160
161
- assertEquals (HttpStatus .OK .toString (), Integer .toString (reponseStatusCode ));
162
- assertEquals ("Diffences between actual Aggregated Object:\n " + responseAsString
161
+ assertEquals (HttpStatus .OK .toString (), Integer .toString (responseStatusCode ));
162
+ assertEquals ("Differences between actual Aggregated Object:\n " + responseAsString
163
163
+ "\n and expected Aggregated Object:\n " + expectedResponse , expectedResponse , responseAsString );
164
164
}
165
165
@@ -181,11 +181,11 @@ public void perform_several_valid_freestyle_queries_on_created_Aggregated_object
181
181
for (String query : queries ) {
182
182
LOGGER .debug ("Freestyle querying for the AggregatedObject with criteria: " + query );
183
183
JsonNode queryJson = objMapper .readValue (query , JsonNode .class );
184
- String formatedQuery = queryJson .toString ();
184
+ String formattedQuery = queryJson .toString ();
185
185
HttpRequest postRequest = new HttpRequest (HttpMethod .POST );
186
186
response = postRequest .setPort (applicationPort ).setHost (hostName )
187
187
.addHeader ("content-type" , "application/json" ).addHeader ("Accept" , "application/json" )
188
- .setEndpoint (entryPoint ).setBody (formatedQuery ).performRequest ();
188
+ .setEndpoint (entryPoint ).setBody (formattedQuery ).performRequest ();
189
189
190
190
LOGGER .debug ("Response of /query RestApi, Status Code: " + response .getStatusCodeValue () + "\n Response: "
191
191
+ response .getBody ().toString ());
@@ -205,7 +205,7 @@ public void perform_several_valid_freestyle_queries_on_created_Aggregated_object
205
205
}
206
206
}
207
207
208
- @ And ("^Perform an invalid freesyle query on Aggregated object$" )
208
+ @ And ("^Perform an invalid freestyle query on Aggregated object$" )
209
209
public void perform_invalid_freestyle_query_on_created_aggregated_object () throws Throwable {
210
210
final String invalidAggrId = "6acc3c87-75e0-4b6d-88f5-b1aee4e62b43" ;
211
211
final String entryPoint = "/query" ;
@@ -219,12 +219,12 @@ public void perform_invalid_freestyle_query_on_created_aggregated_object() throw
219
219
.addHeader ("Accept" , "application/json" ).setEndpoint (entryPoint ).setBody (queryAggrObj ).performRequest ();
220
220
221
221
String responseAsString = response .getBody ().toString ();
222
- int reponseStatusCode = response .getStatusCodeValue ();
222
+ int responseStatusCode = response .getStatusCodeValue ();
223
223
LOGGER .debug (
224
- "Response of /query RestApi, Status Code: " + reponseStatusCode + "\n Response: " + responseAsString );
224
+ "Response of /query RestApi, Status Code: " + responseStatusCode + "\n Response: " + responseAsString );
225
225
226
- assertEquals (HttpStatus .OK .toString (), Integer .toString (reponseStatusCode ));
227
- assertEquals ("Diffences between actual Aggregated Object:\n " + responseAsString
226
+ assertEquals (HttpStatus .OK .toString (), Integer .toString (responseStatusCode ));
227
+ assertEquals ("Differences between actual Aggregated Object:\n " + responseAsString
228
228
+ "\n and expected Aggregated Object:\n " + expectedResponse , expectedResponse , responseAsString );
229
229
}
230
230
@@ -251,8 +251,8 @@ public void perform_a_query_for_missed_notification() throws Throwable {
251
251
.addParam ("SubscriptionName" , subscriptionName ).performRequest ();
252
252
253
253
String responseAsString = response .getBody ().toString ();
254
- int reponseStatusCode = response .getStatusCodeValue ();
255
- LOGGER .debug ("Response of /queryMissedNotifications RestApi, Status Code: " + reponseStatusCode + "\n Response: "
254
+ int responseStatusCode = response .getStatusCodeValue ();
255
+ LOGGER .debug ("Response of /queryMissedNotifications RestApi, Status Code: " + responseStatusCode + "\n Response: "
256
256
+ responseAsString );
257
257
258
258
JsonNode jsonNodeResult = objMapper .readValue (response .getBody ().toString (), JsonNode .class );
@@ -265,7 +265,7 @@ public void perform_a_query_for_missed_notification() throws Throwable {
265
265
String actualTestCaseStartedEventId = responseEntityFormattedJsonNode .get ("testCaseExecutions" )
266
266
.get ("testCaseStartedEventId" ).asText ();
267
267
assertEquals (HttpStatus .OK .toString (), Integer .toString (response .getStatusCodeValue ()));
268
- assertEquals ("Diffences between actual Missed Notification response TestCaseStartedEventId:\n "
268
+ assertEquals ("Differences between actual Missed Notification response TestCaseStartedEventId:\n "
269
269
+ actualTestCaseStartedEventId
270
270
+ "\n and expected Missed Notification response TestCaseStartedEventId:\n "
271
271
+ expectedTestCaseStartedEventId , expectedTestCaseStartedEventId , actualTestCaseStartedEventId );
@@ -287,13 +287,13 @@ public void check_missed_notification_has_been_returned() throws Throwable {
287
287
.addParam ("SubscriptionName" , subscriptionName ).performRequest ();
288
288
289
289
String responseAsString = response .getBody ().toString ();
290
- int reponseStatusCode = response .getStatusCodeValue ();
291
- LOGGER .debug ("Response of /queryMissedNotifications RestApi, Status Code: " + reponseStatusCode + "\n Response: "
290
+ int responseStatusCode = response .getStatusCodeValue ();
291
+ LOGGER .debug ("Response of /queryMissedNotifications RestApi, Status Code: " + responseStatusCode + "\n Response: "
292
292
+ responseAsString );
293
293
294
- assertEquals (HttpStatus .OK .toString (), Integer .toString (reponseStatusCode ));
294
+ assertEquals (HttpStatus .OK .toString (), Integer .toString (responseStatusCode ));
295
295
assertEquals (
296
- "Diffences between actual Missed Notification response:\n " + responseAsString
296
+ "Differences between actual Missed Notification response:\n " + responseAsString
297
297
+ "\n and expected Missed Notification response:\n " + expectedResponse ,
298
298
expectedResponse , responseAsString );
299
299
}
@@ -324,9 +324,9 @@ public void perform_valid_query_and_filter_on_aggregated_object() throws Throwab
324
324
+ response .getBody ().toString ());
325
325
326
326
String responseAsString = response .getBody ().toString ();
327
- int reponseStatusCode = response .getStatusCodeValue ();
327
+ int responseStatusCode = response .getStatusCodeValue ();
328
328
329
- assertEquals (HttpStatus .OK .toString (), Integer .toString (reponseStatusCode ));
329
+ assertEquals (HttpStatus .OK .toString (), Integer .toString (responseStatusCode ));
330
330
assertEquals (
331
331
"Failed to compare actual response:\n " + responseAsString + "\n with expected response:\n "
332
332
+ expectedResponse ,
@@ -372,9 +372,9 @@ public void perform__query_and_filter_with_part_of_path() throws Throwable {
372
372
+ response .getBody ().toString ());
373
373
374
374
String responseAsString = response .getBody ().toString ();
375
- int reponseStatusCode = response .getStatusCodeValue ();
375
+ int responseStatusCode = response .getStatusCodeValue ();
376
376
377
- assertEquals (HttpStatus .OK .toString (), Integer .toString (reponseStatusCode ));
377
+ assertEquals (HttpStatus .OK .toString (), Integer .toString (responseStatusCode ));
378
378
assertEquals (
379
379
"Failed to compare actual response:\n " + responseAsString + "\n with expected response:\n "
380
380
+ expectedResponses .get (pos ),
@@ -394,15 +394,15 @@ public void perform_query_to_retrieve_and_filter_out_confidence_level_informatio
394
394
LOGGER .debug ("Freestyle querying for the AggregatedObject with criteria: " + query );
395
395
396
396
JsonNode queryJson = objMapper .readValue (query , JsonNode .class );
397
- String formatedQuery = queryJson .toString ();
397
+ String formattedQuery = queryJson .toString ();
398
398
399
399
HttpRequest postRequest = new HttpRequest (HttpMethod .POST );
400
400
response = postRequest .setPort (applicationPort )
401
401
.setHost (hostName )
402
402
.addHeader ("content-type" , "application/json" )
403
403
.addHeader ("Accept" , "application/json" )
404
404
.setEndpoint (entryPoint )
405
- .setBody (formatedQuery )
405
+ .setBody (formattedQuery )
406
406
.performRequest ();
407
407
408
408
LOGGER .debug ("Response of /query RestApi, Status Code: " + response .getStatusCodeValue () +
0 commit comments