METHOD_0 ( ) { org . springframework . batch . item . file . IDENT_0 < org . springframework . batch . item . file . transform . IDENT_1 > reader = new org . springframework . batch . item . file . IDENT_0 < org . springframework . batch . item . file . transform . IDENT_1 > ( ) ; reader . METHOD_1 ( new org . springframework . core . io . METHOD_2 ( STRING_0 ) ) ; org . springframework . batch . item . file . mapping . IDENT_2 < org . springframework . batch . item . file . transform . IDENT_1 > IDENT_3 = new org . springframework . batch . item . file . mapping . IDENT_2 < org . springframework . batch . item . file . transform . IDENT_1 > ( ) ; IDENT_3 . METHOD_3 ( new org . springframework . batch . item . file . transform . METHOD_4 ( ) ) ; IDENT_3 . METHOD_5 ( new org . springframework . batch . item . file . mapping . METHOD_6 ( ) ) ; reader . METHOD_7 ( 1 ) ; final java . util . List < java . lang . String > headers = new java . util . ArrayList < java . lang . String > ( ) ; reader . METHOD_8 ( new org . springframework . batch . item . file . METHOD_9 ( ) { public void METHOD_10 ( java . lang . String line ) { headers . add ( line ) ; } } ) ; reader . METHOD_11 ( IDENT_3 ) ; reader . METHOD_12 ( new org . springframework . batch . item . METHOD_13 ( ) ) ; java . util . List < org . springframework . batch . item . file . transform . IDENT_1 > list = new java . util . ArrayList < org . springframework . batch . item . file . transform . IDENT_1 > ( ) ; org . springframework . batch . item . file . transform . IDENT_1 item = reader . read ( ) ; while ( item != null ) { list . add ( item ) ; item = reader . read ( ) ; } "<AssertPlaceHolder>" ; org . springframework . batch . item . file . IDENT_4 < org . springframework . batch . item . file . transform . IDENT_1 > writer = new org . springframework . batch . item . file . IDENT_4 < org . springframework . batch . item . file . transform . IDENT_1 > ( ) ; org . springframework . core . io . IDENT_5 resource = new org . springframework . core . io . METHOD_14 ( STRING_1 ) ; org . apache . commons . io . IDENT_6 . METHOD_15 ( resource . METHOD_16 ( ) ) ; writer . METHOD_1 ( resource ) ; writer . METHOD_17 ( new org . springframework . batch . item . file . METHOD_18 ( ) { public void METHOD_19 ( java . io . IDENT_7 writer ) throws java . io . IOException { for ( java . lang . String header : headers ) { writer . write ( header ) ; } } } ) ; writer . METHOD_20 ( new org . springframework . batch . item . file . transform . IDENT_8 < org . springframework . batch . item . file . transform . IDENT_1 > ( ) ) ; writer . METHOD_12 ( new org . springframework . batch . item . METHOD_13 ( ) ) ; java . lang . String [ ] IDENT_9 = METHOD_21 ( list , 1 ) ; java . lang . String [ ] IDENT_10 = METHOD_21 ( list , 2 ) ; java . lang . String [ ] IDENT_11 = METHOD_21 ( list , 3 ) ; double [ ] IDENT_12 = METHOD_22 ( list , 4 ) ; java . text . IDENT_13 IDENT_14 = new java . text . METHOD_23 ( STRING_2 ) ; int count = 20 ; for ( int i = 0 ; i < 100 ; i ++ ) { java . util . List < org . springframework . batch . item . file . transform . IDENT_1 > IDENT_15 = new java . util . ArrayList < org . springframework . batch . item . file . transform . IDENT_1 > ( ) ; for ( org . springframework . batch . item . file . transform . IDENT_1 IDENT_16 : list ) { java . lang . String [ ] values = IDENT_16 . METHOD_24 ( ) ; values [ 0 ] = "" + ( count ++ ) ; values [ 1 ] = METHOD_25 ( IDENT_9 ) ; values [ 2 ] = METHOD_25 ( IDENT_10 ) ; values [ 3 ] = METHOD_25 ( IDENT_11 ) ; values [ 4 ] = IDENT_14 . format ( random ( IDENT_12 ) ) ; IDENT_15 . add ( new org . springframework . batch . item . file . transform . METHOD_26 ( values ) ) ; } writer . write ( IDENT_15 ) ; } writer . close ( ) ; } size ( ) { return count . get ( ) ; }
org . junit . Assert . assertEquals ( 7 , list . size ( ) )