23
23
import java .util .Arrays ;
24
24
import java .util .Collection ;
25
25
import java .util .Collections ;
26
+ import java .util .List ;
26
27
import java .util .UUID ;
27
28
28
29
import org .aopalliance .aop .Advice ;
@@ -189,7 +190,7 @@ void publishesEventsForCallToSaveWithIterable() throws Throwable {
189
190
190
191
var event = new SomeEvent ();
191
192
var sample = MultipleEvents .of (Collections .singletonList (event ));
192
- mockInvocation (invocation , SampleRepository .class .getMethod ("saveAll" , Iterable .class ), sample );
193
+ mockInvocation (invocation , SampleRepository .class .getMethod ("saveAll" , Iterable .class ), List . of ( sample ) );
193
194
194
195
EventPublishingMethodInterceptor //
195
196
.of (EventPublishingMethod .of (MultipleEvents .class ), publisher )//
@@ -203,7 +204,7 @@ void publishesEventsForCallToDeleteWithIterable() throws Throwable {
203
204
204
205
var event = new SomeEvent ();
205
206
var sample = MultipleEvents .of (Collections .singletonList (event ));
206
- mockInvocation (invocation , SampleRepository .class .getMethod ("deleteAll" , Iterable .class ), sample );
207
+ mockInvocation (invocation , SampleRepository .class .getMethod ("deleteAll" , Iterable .class ), List . of ( sample ) );
207
208
208
209
EventPublishingMethodInterceptor //
209
210
.of (EventPublishingMethod .of (MultipleEvents .class ), publisher )//
@@ -217,7 +218,7 @@ void publishesEventsForCallToDeleteInBatchWithIterable() throws Throwable {
217
218
218
219
var event = new SomeEvent ();
219
220
var sample = MultipleEvents .of (Collections .singletonList (event ));
220
- mockInvocation (invocation , SampleRepository .class .getMethod ("deleteInBatch" , Iterable .class ), sample );
221
+ mockInvocation (invocation , SampleRepository .class .getMethod ("deleteInBatch" , Iterable .class ), List . of ( sample ) );
221
222
222
223
EventPublishingMethodInterceptor //
223
224
.of (EventPublishingMethod .of (MultipleEvents .class ), publisher )//
@@ -231,7 +232,7 @@ void publishesEventsForCallToDeleteAllInBatchWithIterable() throws Throwable {
231
232
232
233
var event = new SomeEvent ();
233
234
var sample = MultipleEvents .of (Collections .singletonList (event ));
234
- mockInvocation (invocation , SampleRepository .class .getMethod ("deleteAllInBatch" , Iterable .class ), sample );
235
+ mockInvocation (invocation , SampleRepository .class .getMethod ("deleteAllInBatch" , Iterable .class ), List . of ( sample ) );
235
236
236
237
EventPublishingMethodInterceptor //
237
238
.of (EventPublishingMethod .of (MultipleEvents .class ), publisher )//
0 commit comments