@@ -103,7 +103,7 @@ public void callbackOnSave() {
103
103
SampleEntity second = new SampleEntity (23L , "Alfred E." );
104
104
SampleEntity third = new SampleEntity (23L , "Neumann" );
105
105
106
- when (callbacks .callback (any (Class .class ), any (), any ())).thenReturn (second , third );
106
+ when (callbacks .callback (any (Class .class ), any (), any (Object []. class ))).thenReturn (second , third );
107
107
108
108
SampleEntity last = template .save (first );
109
109
@@ -121,7 +121,7 @@ public void doesNotEmitEvents() {
121
121
SampleEntity second = new SampleEntity (23L , "Alfred E." );
122
122
SampleEntity third = new SampleEntity (23L , "Neumann" );
123
123
124
- when (callbacks .callback (any (Class .class ), any (), any ())).thenReturn (second , third );
124
+ when (callbacks .callback (any (Class .class ), any (), any (Object []. class ))).thenReturn (second , third );
125
125
126
126
template .setEntityLifecycleEventsEnabled (false );
127
127
template .save (first );
@@ -133,7 +133,7 @@ public void doesNotEmitEvents() {
133
133
void savePreparesInstanceWithInitialVersion_onInsert () {
134
134
135
135
EntityWithVersion entity = new EntityWithVersion (1L );
136
- when (callbacks .callback (any (), any (), any ())).thenReturn (entity , entity );
136
+ when (callbacks .callback (any (), any (), any (Object []. class ))).thenReturn (entity , entity );
137
137
138
138
template .save (entity );
139
139
@@ -148,7 +148,7 @@ void savePreparesInstanceWithInitialVersion_onInsert() {
148
148
void savePreparesInstanceWithInitialVersion_onInsert_whenVersionPropertyIsImmutable () {
149
149
150
150
EntityWithImmutableVersion entity = new EntityWithImmutableVersion (1L , null );
151
- when (callbacks .callback (any (), any (), any ())).thenReturn (entity , entity );
151
+ when (callbacks .callback (any (), any (), any (Object []. class ))).thenReturn (entity , entity );
152
152
153
153
template .save (entity );
154
154
@@ -163,7 +163,7 @@ void savePreparesInstanceWithInitialVersion_onInsert_whenVersionPropertyIsImmuta
163
163
void savePreparesInstanceWithInitialVersion_onInsert_whenVersionPropertyIsPrimitiveType () {
164
164
165
165
EntityWithPrimitiveVersion entity = new EntityWithPrimitiveVersion (1L );
166
- when (callbacks .callback (any (), any (), any ())).thenReturn (entity , entity );
166
+ when (callbacks .callback (any (), any (), any (Object []. class ))).thenReturn (entity , entity );
167
167
168
168
template .save (entity );
169
169
@@ -178,7 +178,7 @@ void savePreparesInstanceWithInitialVersion_onInsert_whenVersionPropertyIsPrimit
178
178
void savePreparesInstanceWithInitialVersion_onInsert__whenVersionPropertyIsImmutableAndPrimitiveType () {
179
179
180
180
EntityWithImmutablePrimitiveVersion entity = new EntityWithImmutablePrimitiveVersion (1L , 0L );
181
- when (callbacks .callback (any (), any (), any ())).thenReturn (entity , entity );
181
+ when (callbacks .callback (any (), any (), any (Object []. class ))).thenReturn (entity , entity );
182
182
183
183
template .save (entity );
184
184
@@ -196,7 +196,7 @@ void savePreparesChangeWithPreviousVersion_onUpdate() {
196
196
when (dataAccessStrategy .updateWithVersion (any (), any (), any ())).thenReturn (true );
197
197
EntityWithVersion entity = new EntityWithVersion (1L );
198
198
entity .setVersion (1L );
199
- when (callbacks .callback (any (), any (), any ())).thenReturn (entity , entity );
199
+ when (callbacks .callback (any (), any (), any (Object []. class ))).thenReturn (entity , entity );
200
200
201
201
template .save (entity );
202
202
@@ -213,7 +213,7 @@ void savePreparesInstanceWithNextVersion_onUpdate() {
213
213
when (dataAccessStrategy .updateWithVersion (any (), any (), any ())).thenReturn (true );
214
214
EntityWithVersion entity = new EntityWithVersion (1L );
215
215
entity .setVersion (1L );
216
- when (callbacks .callback (any (), any (), any ())).thenReturn (entity , entity );
216
+ when (callbacks .callback (any (), any (), any (Object []. class ))).thenReturn (entity , entity );
217
217
218
218
template .save (entity );
219
219
@@ -229,7 +229,7 @@ void savePreparesInstanceWithNextVersion_onUpdate_whenVersionPropertyIsImmutable
229
229
230
230
when (dataAccessStrategy .updateWithVersion (any (), any (), any ())).thenReturn (true );
231
231
EntityWithImmutableVersion entity = new EntityWithImmutableVersion (1L , 1L );
232
- when (callbacks .callback (any (), any (), any ())).thenReturn (entity , entity );
232
+ when (callbacks .callback (any (), any (), any (Object []. class ))).thenReturn (entity , entity );
233
233
234
234
template .save (entity );
235
235
@@ -243,7 +243,7 @@ void savePreparesInstanceWithNextVersion_onUpdate_whenVersionPropertyIsImmutable
243
243
void deletePreparesChangeWithPreviousVersion_onDeleteByInstance () {
244
244
245
245
EntityWithImmutableVersion entity = new EntityWithImmutableVersion (1L , 1L );
246
- when (callbacks .callback (any (), any (), any ())).thenReturn (entity , entity );
246
+ when (callbacks .callback (any (), any (), any (Object []. class ))).thenReturn (entity , entity );
247
247
248
248
template .delete (entity );
249
249
@@ -279,8 +279,8 @@ public void callbackOnLoadSorted() {
279
279
280
280
when (dataAccessStrategy .findAll (SampleEntity .class , Sort .by ("name" ))).thenReturn (asList (alfred1 , neumann1 ));
281
281
282
- when (callbacks .callback (any (Class .class ), eq (alfred1 ), any ())).thenReturn (alfred2 );
283
- when (callbacks .callback (any (Class .class ), eq (neumann1 ), any ())).thenReturn (neumann2 );
282
+ when (callbacks .callback (any (Class .class ), eq (alfred1 ), any (Object []. class ))).thenReturn (alfred2 );
283
+ when (callbacks .callback (any (Class .class ), eq (neumann1 ), any (Object []. class ))).thenReturn (neumann2 );
284
284
285
285
Iterable <SampleEntity > all = template .findAll (SampleEntity .class , Sort .by ("name" ));
286
286
@@ -301,8 +301,8 @@ public void callbackOnLoadPaged() {
301
301
302
302
when (dataAccessStrategy .findAll (SampleEntity .class , PageRequest .of (0 , 20 ))).thenReturn (asList (alfred1 , neumann1 ));
303
303
304
- when (callbacks .callback (any (Class .class ), eq (alfred1 ), any ())).thenReturn (alfred2 );
305
- when (callbacks .callback (any (Class .class ), eq (neumann1 ), any ())).thenReturn (neumann2 );
304
+ when (callbacks .callback (any (Class .class ), eq (alfred1 ), any (Object []. class ))).thenReturn (alfred2 );
305
+ when (callbacks .callback (any (Class .class ), eq (neumann1 ), any (Object []. class ))).thenReturn (neumann2 );
306
306
307
307
Iterable <SampleEntity > all = template .findAll (SampleEntity .class , PageRequest .of (0 , 20 ));
308
308
0 commit comments