@@ -194,7 +194,7 @@ public void testMultiInsertWithRawMyBatisAnnotations() {
194
194
" (#{records[2].id,jdbcType=INTEGER}, #{records[2].firstName,jdbcType=VARCHAR}, #{records[2].lastName,jdbcType=VARCHAR})," +
195
195
" (#{records[3].id,jdbcType=INTEGER}, #{records[3].firstName,jdbcType=VARCHAR}, #{records[3].lastName,jdbcType=VARCHAR})" ;
196
196
197
- int rows = mapper .multiInsertWithGeneratedKeys (statement , records );
197
+ int rows = mapper .insertMultipleWithGeneratedKeys (statement , records );
198
198
199
199
assertAll (
200
200
() -> assertThat (rows ).isEqualTo (4 ),
@@ -207,7 +207,7 @@ public void testMultiInsertWithRawMyBatisAnnotations() {
207
207
}
208
208
209
209
@ Test
210
- public void testMultiInsertWithList () {
210
+ public void testMultiInsertWithListAndGeneratedKeys () {
211
211
try (SqlSession session = sqlSessionFactory .openSession ()) {
212
212
GeneratedAlwaysAnnotatedMapper mapper = session .getMapper (GeneratedAlwaysAnnotatedMapper .class );
213
213
List <GeneratedAlwaysRecord > records = getTestRecords ();
@@ -229,7 +229,7 @@ public void testMultiInsertWithList() {
229
229
230
230
assertThat (multiRowInsert .getInsertStatement ()).isEqualTo (statement );
231
231
232
- int rows = mapper .multiInsertWithGeneratedKeys (multiRowInsert );
232
+ int rows = mapper .insertMultipleWithGeneratedKeys (multiRowInsert );
233
233
234
234
assertAll (
235
235
() -> assertThat (rows ).isEqualTo (4 ),
@@ -271,7 +271,7 @@ public void testMultiInsertWithArray() {
271
271
272
272
assertThat (multiRowInsert .getInsertStatement ()).isEqualTo (statement );
273
273
274
- int rows = mapper .multiInsert (multiRowInsert );
274
+ int rows = mapper .insertMultiple (multiRowInsert );
275
275
assertThat (rows ).isEqualTo (2 );
276
276
}
277
277
}
@@ -300,7 +300,7 @@ public void testMultiInsertWithArrayAndVariousMappings() {
300
300
301
301
assertThat (multiRowInsert .getInsertStatement ()).isEqualTo (statement );
302
302
303
- int rows = mapper .multiInsertWithGeneratedKeys (multiRowInsert );
303
+ int rows = mapper .insertMultipleWithGeneratedKeys (multiRowInsert );
304
304
305
305
assertAll (
306
306
() -> assertThat (rows ).isEqualTo (1 ),
0 commit comments