METHOD_0 ( ) { java . lang . String target = STRING_0 ; java . lang . String base = STRING_1 ; java . lang . String expected = STRING_2 ; java . lang . String IDENT_0 = org . IDENT_1 . IDENT_2 . file . IDENT_3 . METHOD_1 ( target , base , STRING_3 ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( java . lang . String , java . lang . String , java . lang . String ) { java . lang . String IDENT_4 = org . apache . commons . io . IDENT_5 . METHOD_2 ( IDENT_6 ) ; java . lang . String IDENT_7 = org . apache . commons . io . IDENT_5 . METHOD_2 ( IDENT_8 ) ; if ( IDENT_9 . equals ( "/" ) ) { IDENT_4 = org . apache . commons . io . IDENT_5 . METHOD_3 ( IDENT_4 ) ; IDENT_7 = org . apache . commons . io . IDENT_5 . METHOD_3 ( IDENT_7 ) ; } else if ( IDENT_9 . equals ( STRING_3 ) ) { IDENT_4 = org . apache . commons . io . IDENT_5 . METHOD_4 ( IDENT_4 ) ; IDENT_7 = org . apache . commons . io . IDENT_5 . METHOD_4 ( IDENT_7 ) ; } else { throw new java . lang . IllegalArgumentException ( ( ( STRING_4 + IDENT_9 ) + STRING_5 ) ) ; } java . lang . String [ ] base = IDENT_7 . split ( java . util . regex . IDENT_10 . METHOD_5 ( IDENT_9 ) ) ; java . lang . String [ ] target = IDENT_4 . split ( java . util . regex . IDENT_10 . METHOD_5 ( IDENT_9 ) ) ; java . lang . StringBuffer common = new java . lang . StringBuffer ( ) ; int IDENT_11 = 0 ; while ( ( ( IDENT_11 < ( target . length ) ) && ( IDENT_11 < ( base . length ) ) ) && ( target [ IDENT_11 ] . equals ( base [ IDENT_11 ] ) ) ) { common . append ( ( ( target [ IDENT_11 ] ) + IDENT_9 ) ) ; IDENT_11 ++ ; } if ( IDENT_11 == 0 ) { throw new org . IDENT_1 . IDENT_2 . file . METHOD_6 ( ( ( ( ( STRING_6 + IDENT_4 ) + STRING_7 ) + IDENT_7 ) + STRING_5 ) ) ; } boolean IDENT_12 = true ; java . io . File IDENT_13 = new java . io . File ( IDENT_7 ) ; if ( IDENT_13 . exists ( ) ) { IDENT_12 = IDENT_13 . METHOD_7 ( ) ; } else if ( IDENT_8 . METHOD_8 ( IDENT_9 ) ) { IDENT_12 = false ; } java . lang . StringBuffer IDENT_14 = new java . lang . StringBuffer ( ) ; if ( ( base . length ) != IDENT_11 ) { int IDENT_15 = ( IDENT_12 ) ? ( ( base . length ) - IDENT_11 ) - 1 : ( base . length ) - IDENT_11 ; for ( int i = 0 ; i < IDENT_15 ; i ++ ) { IDENT_14 . append ( ( STRING_8 + IDENT_9 ) ) ; } } IDENT_14 . append ( IDENT_4 . substring ( common . length ( ) ) ) ; return IDENT_14 . toString ( ) ; }
org . junit . Assert . assertEquals ( expected , IDENT_0 )