@@ -81,6 +81,7 @@ public void should_be_able_to_compare_objects_of_different_types_recursively() {
81
81
}
82
82
83
83
@ Test
84
+ @ SuppressWarnings ("deprecation" ) // test for deprecated method
84
85
public void should_be_able_to_compare_objects_recursively_using_some_precision_for_numerical_types () {
85
86
Giant goliath = new Giant ();
86
87
goliath .name = "Goliath" ;
@@ -95,6 +96,7 @@ public void should_be_able_to_compare_objects_recursively_using_some_precision_f
95
96
}
96
97
97
98
@ Test
99
+ @ SuppressWarnings ("deprecation" ) // test for deprecated method
98
100
public void should_be_able_to_compare_objects_recursively_using_given_comparator_for_specified_field () {
99
101
Giant goliath = new Giant ();
100
102
goliath .name = "Goliath" ;
@@ -109,6 +111,7 @@ public void should_be_able_to_compare_objects_recursively_using_given_comparator
109
111
}
110
112
111
113
@ Test
114
+ @ SuppressWarnings ("deprecation" ) // test for deprecated method
112
115
public void should_be_able_to_compare_objects_recursively_using_given_comparator_for_specified_nested_field () {
113
116
Giant goliath = new Giant ();
114
117
goliath .name = "Goliath" ;
@@ -204,6 +207,7 @@ public void should_fail_when_fields_of_child_objects_differ() {
204
207
}
205
208
206
209
@ Test
210
+ @ SuppressWarnings ("deprecation" ) // test for deprecated method
207
211
public void should_have_error_message_with_differences_and_path_to_differences () {
208
212
Person actual = new Person ();
209
213
actual .name = "Jack" ;
@@ -227,6 +231,7 @@ public void should_have_error_message_with_differences_and_path_to_differences()
227
231
}
228
232
229
233
@ Test
234
+ @ SuppressWarnings ("deprecation" ) // test for deprecated method
230
235
public void should_have_error_message_with_path_to_difference_when_difference_is_in_collection () {
231
236
FriendlyPerson actual = new FriendlyPerson ();
232
237
FriendlyPerson friendOfActual = new FriendlyPerson ();
@@ -276,6 +281,7 @@ public void should_not_use_equal_implementation_of_objects_to_compare() {
276
281
}
277
282
278
283
@ Test
284
+ @ SuppressWarnings ("deprecation" ) // test for deprecated method
279
285
public void should_fail_when_comparing_unsorted_with_sorted_set () {
280
286
WithCollection <String > actual = new WithCollection <>(new LinkedHashSet <String >());
281
287
actual .collection .add ("bar" );
@@ -296,6 +302,7 @@ public void should_fail_when_comparing_unsorted_with_sorted_set() {
296
302
}
297
303
298
304
@ Test
305
+ @ SuppressWarnings ("deprecation" ) // test for deprecated method
299
306
public void should_fail_when_comparing_sorted_with_unsorted_set () {
300
307
WithCollection <String > actual = new WithCollection <>(new TreeSet <String >());
301
308
actual .collection .add ("bar" );
@@ -316,6 +323,7 @@ public void should_fail_when_comparing_sorted_with_unsorted_set() {
316
323
}
317
324
318
325
@ Test
326
+ @ SuppressWarnings ("deprecation" ) // test for deprecated method
319
327
public void should_fail_when_comparing_unsorted_with_sorted_map () {
320
328
WithMap <Long , Boolean > actual = new WithMap <>(new LinkedHashMap <>());
321
329
actual .map .put (1L , true );
@@ -336,6 +344,7 @@ public void should_fail_when_comparing_unsorted_with_sorted_map() {
336
344
}
337
345
338
346
@ Test
347
+ @ SuppressWarnings ("deprecation" ) // test for deprecated method
339
348
public void should_fail_when_comparing_sorted_with_unsorted_map () {
340
349
WithMap <Long , Boolean > actual = new WithMap <>(new TreeMap <Long , Boolean >());
341
350
actual .map .put (1L , true );
@@ -356,6 +365,7 @@ public void should_fail_when_comparing_sorted_with_unsorted_map() {
356
365
}
357
366
358
367
@ Test
368
+ @ SuppressWarnings ("deprecation" ) // test for deprecated method
359
369
public void should_handle_null_field_with_field_comparator () {
360
370
// GIVEN
361
371
Patient adam = new Patient (null );
@@ -366,6 +376,7 @@ public void should_handle_null_field_with_field_comparator() {
366
376
}
367
377
368
378
@ Test
379
+ @ SuppressWarnings ("deprecation" ) // test for deprecated method
369
380
public void should_handle_null_field_with_type_comparator () {
370
381
// GIVEN
371
382
Patient adam = new Patient (null );
@@ -376,6 +387,7 @@ public void should_handle_null_field_with_type_comparator() {
376
387
}
377
388
378
389
@ Test
390
+ @ SuppressWarnings ("deprecation" ) // test for deprecated method
379
391
public void should_not_bother_with_comparators_when_fields_are_the_same () {
380
392
// GIVEN
381
393
Timestamp dateOfBirth = new Timestamp (3L );
@@ -456,6 +468,7 @@ public void should_be_able_to_compare_objects_with_percentages() {
456
468
}
457
469
458
470
@ Test
471
+ @ SuppressWarnings ("deprecation" ) // test for deprecated method
459
472
public void should_report_missing_property () {
460
473
// GIVEN
461
474
Human joe = new Human ();
0 commit comments