@@ -251,60 +251,6 @@ public void shouldFailIfKeyPropertyIsInvalid_WrongParamName() throws Exception {
251
251
}
252
252
}
253
253
254
- @ Test
255
- public void shouldAssignKeysToList_MultiParams () throws Exception {
256
- SqlSession sqlSession = sqlSessionFactory .openSession ();
257
- try {
258
- CountryMapper mapper = sqlSession .getMapper (CountryMapper .class );
259
- List <Country > countries = new ArrayList <Country >();
260
- countries .add (new Country ("China" , "CN" ));
261
- countries .add (new Country ("United Kiongdom" , "GB" ));
262
- mapper .insertListAndSomeId (countries , Integer .valueOf (1 ));
263
- for (Country country : countries ) {
264
- assertNotNull (country .getId ());
265
- }
266
- } finally {
267
- sqlSession .rollback ();
268
- sqlSession .close ();
269
- }
270
- }
271
-
272
- @ Test
273
- public void shouldAssignKeysToCollection_MultiParams () throws Exception {
274
- SqlSession sqlSession = sqlSessionFactory .openSession ();
275
- try {
276
- CountryMapper mapper = sqlSession .getMapper (CountryMapper .class );
277
- Set <Country > countries = new HashSet <Country >();
278
- countries .add (new Country ("China" , "CN" ));
279
- countries .add (new Country ("United Kiongdom" , "GB" ));
280
- mapper .insertSetAndSomeId (countries , Integer .valueOf (1 ));
281
- for (Country country : countries ) {
282
- assertNotNull (country .getId ());
283
- }
284
- } finally {
285
- sqlSession .rollback ();
286
- sqlSession .close ();
287
- }
288
- }
289
-
290
- @ Test
291
- public void shouldAssignKeysToArray_MultiParams () throws Exception {
292
- SqlSession sqlSession = sqlSessionFactory .openSession ();
293
- try {
294
- CountryMapper mapper = sqlSession .getMapper (CountryMapper .class );
295
- Country [] countries = new Country [2 ];
296
- countries [0 ] = new Country ("China" , "CN" );
297
- countries [1 ] = new Country ("United Kiongdom" , "GB" );
298
- mapper .insertArrayAndSomeId (countries , Integer .valueOf (1 ));
299
- for (Country country : countries ) {
300
- assertNotNull (country .getId ());
301
- }
302
- } finally {
303
- sqlSession .rollback ();
304
- sqlSession .close ();
305
- }
306
- }
307
-
308
254
@ Test
309
255
public void shouldAssignKeysToNamedList_MultiParams () throws Exception {
310
256
SqlSession sqlSession = sqlSessionFactory .openSession ();
0 commit comments