27
27
import java .util .Arrays ;
28
28
import java .util .Collection ;
29
29
import java .util .Collections ;
30
+ import java .util .List ;
30
31
import java .util .UUID ;
31
32
32
33
import org .aopalliance .aop .Advice ;
@@ -194,7 +195,7 @@ void publishesEventsForCallToSaveWithIterable() throws Throwable {
194
195
195
196
var event = new SomeEvent ();
196
197
var sample = MultipleEvents .of (Collections .singletonList (event ));
197
- mockInvocation (invocation , SampleRepository .class .getMethod ("saveAll" , Iterable .class ), sample );
198
+ mockInvocation (invocation , SampleRepository .class .getMethod ("saveAll" , Iterable .class ), List . of ( sample ) );
198
199
199
200
EventPublishingMethodInterceptor //
200
201
.of (EventPublishingMethod .of (MultipleEvents .class ), publisher )//
@@ -208,7 +209,7 @@ void publishesEventsForCallToDeleteWithIterable() throws Throwable {
208
209
209
210
var event = new SomeEvent ();
210
211
var sample = MultipleEvents .of (Collections .singletonList (event ));
211
- mockInvocation (invocation , SampleRepository .class .getMethod ("deleteAll" , Iterable .class ), sample );
212
+ mockInvocation (invocation , SampleRepository .class .getMethod ("deleteAll" , Iterable .class ), List . of ( sample ) );
212
213
213
214
EventPublishingMethodInterceptor //
214
215
.of (EventPublishingMethod .of (MultipleEvents .class ), publisher )//
@@ -222,7 +223,7 @@ void publishesEventsForCallToDeleteInBatchWithIterable() throws Throwable {
222
223
223
224
var event = new SomeEvent ();
224
225
var sample = MultipleEvents .of (Collections .singletonList (event ));
225
- mockInvocation (invocation , SampleRepository .class .getMethod ("deleteInBatch" , Iterable .class ), sample );
226
+ mockInvocation (invocation , SampleRepository .class .getMethod ("deleteInBatch" , Iterable .class ), List . of ( sample ) );
226
227
227
228
EventPublishingMethodInterceptor //
228
229
.of (EventPublishingMethod .of (MultipleEvents .class ), publisher )//
@@ -236,7 +237,7 @@ void publishesEventsForCallToDeleteAllInBatchWithIterable() throws Throwable {
236
237
237
238
var event = new SomeEvent ();
238
239
var sample = MultipleEvents .of (Collections .singletonList (event ));
239
- mockInvocation (invocation , SampleRepository .class .getMethod ("deleteAllInBatch" , Iterable .class ), sample );
240
+ mockInvocation (invocation , SampleRepository .class .getMethod ("deleteAllInBatch" , Iterable .class ), List . of ( sample ) );
240
241
241
242
EventPublishingMethodInterceptor //
242
243
.of (EventPublishingMethod .of (MultipleEvents .class ), publisher )//
0 commit comments