@@ -359,15 +359,15 @@ void error_bulk_work() {
359
359
assertThatFuture ( work1FutureFromSequenceBuilder ).getFailure ()
360
360
.isInstanceOf ( SearchException .class )
361
361
.hasMessageContaining ( "Call to the bulk REST API failed" )
362
- .hasCauseReference ( exception );
362
+ .cause (). isSameAs ( exception );
363
363
assertThatFuture ( work2FutureFromSequenceBuilder ).getFailure ()
364
364
.isInstanceOf ( SearchException .class )
365
365
.hasMessageContaining ( "Call to the bulk REST API failed" )
366
- .hasCauseReference ( exception );
366
+ .cause (). isSameAs ( exception );
367
367
assertThatFuture ( work3FutureFromSequenceBuilder ).getFailure ()
368
368
.isInstanceOf ( SearchException .class )
369
369
.hasMessageContaining ( "Call to the bulk REST API failed" )
370
- .hasCauseReference ( exception );
370
+ .cause (). isSameAs ( exception );
371
371
assertThatFuture ( work4FutureFromSequenceBuilder ).isPending ();
372
372
assertThatFuture ( sequenceFuture ).isPending ();
373
373
@@ -441,15 +441,15 @@ void error_bulk_result() {
441
441
assertThatFuture ( work1FutureFromSequenceBuilder ).getFailure ()
442
442
.isInstanceOf ( SearchException .class )
443
443
.hasMessageContaining ( "Call to the bulk REST API failed" )
444
- .hasCauseReference ( exception );
444
+ .cause (). isSameAs ( exception );
445
445
assertThatFuture ( work2FutureFromSequenceBuilder ).getFailure ()
446
446
.isInstanceOf ( SearchException .class )
447
447
.hasMessageContaining ( "Call to the bulk REST API failed" )
448
- .hasCauseReference ( exception );
448
+ .cause (). isSameAs ( exception );
449
449
assertThatFuture ( work3FutureFromSequenceBuilder ).getFailure ()
450
450
.isInstanceOf ( SearchException .class )
451
451
.hasMessageContaining ( "Call to the bulk REST API failed" )
452
- .hasCauseReference ( exception );
452
+ .cause (). isSameAs ( exception );
453
453
assertThatFuture ( work4FutureFromSequenceBuilder ).isPending ();
454
454
assertThatFuture ( sequenceFuture ).isPending ();
455
455
0 commit comments