METHOD_0 ( ) { java . util . List < java . lang . String > expected = new java . util . ArrayList ( ) ; expected . add ( STRING_0 ) ; expected . add ( STRING_1 ) ; expected . add ( STRING_2 ) ; expected . add ( STRING_3 ) ; java . util . List < java . lang . String > test = new java . util . ArrayList ( ) ; test . add ( STRING_4 ) ; test . add ( STRING_5 ) ; test . add ( STRING_6 ) ; test . add ( STRING_3 ) ; java . util . List < java . lang . String > IDENT_0 = com . stratio . IDENT_1 . commons . utils . Utils . METHOD_1 ( test ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( java . util . List ) { java . util . List < java . lang . String > IDENT_2 = new java . util . ArrayList ( ) ; for ( java . lang . String s : IDENT_0 ) { int index = s . indexOf ( STRING_7 ) ; if ( index > ( - 1 ) ) { IDENT_2 . add ( s . substring ( 0 , index ) ) ; continue ; } IDENT_2 . add ( s ) ; } return IDENT_2 ; }
org . junit . Assert . assertEquals ( IDENT_0 , expected )