@@ -359,15 +359,15 @@ void error_bulk_work() {
359359 assertThatFuture ( work1FutureFromSequenceBuilder ).getFailure ()
360360 .isInstanceOf ( SearchException .class )
361361 .hasMessageContaining ( "Call to the bulk REST API failed" )
362- .hasCauseReference ( exception );
362+ .cause (). isSameAs ( exception );
363363 assertThatFuture ( work2FutureFromSequenceBuilder ).getFailure ()
364364 .isInstanceOf ( SearchException .class )
365365 .hasMessageContaining ( "Call to the bulk REST API failed" )
366- .hasCauseReference ( exception );
366+ .cause (). isSameAs ( exception );
367367 assertThatFuture ( work3FutureFromSequenceBuilder ).getFailure ()
368368 .isInstanceOf ( SearchException .class )
369369 .hasMessageContaining ( "Call to the bulk REST API failed" )
370- .hasCauseReference ( exception );
370+ .cause (). isSameAs ( exception );
371371 assertThatFuture ( work4FutureFromSequenceBuilder ).isPending ();
372372 assertThatFuture ( sequenceFuture ).isPending ();
373373
@@ -441,15 +441,15 @@ void error_bulk_result() {
441441 assertThatFuture ( work1FutureFromSequenceBuilder ).getFailure ()
442442 .isInstanceOf ( SearchException .class )
443443 .hasMessageContaining ( "Call to the bulk REST API failed" )
444- .hasCauseReference ( exception );
444+ .cause (). isSameAs ( exception );
445445 assertThatFuture ( work2FutureFromSequenceBuilder ).getFailure ()
446446 .isInstanceOf ( SearchException .class )
447447 .hasMessageContaining ( "Call to the bulk REST API failed" )
448- .hasCauseReference ( exception );
448+ .cause (). isSameAs ( exception );
449449 assertThatFuture ( work3FutureFromSequenceBuilder ).getFailure ()
450450 .isInstanceOf ( SearchException .class )
451451 .hasMessageContaining ( "Call to the bulk REST API failed" )
452- .hasCauseReference ( exception );
452+ .cause (). isSameAs ( exception );
453453 assertThatFuture ( work4FutureFromSequenceBuilder ).isPending ();
454454 assertThatFuture ( sequenceFuture ).isPending ();
455455
0 commit comments