METHOD_0 ( ) { org . talend . IDENT_0 . nodes . IDENT_1 IDENT_2 = mock ( org . talend . IDENT_0 . nodes . IDENT_1 . class ) ; IDENT_3 . IDENT_4 . IDENT_5 . core . IDENT_6 IDENT_7 = null ; METHOD_1 ( method ( org . talend . IDENT_0 . helper . IDENT_8 . class , STRING_0 , org . talend . IDENT_0 . nodes . IDENT_1 . class ) ) . METHOD_2 ( IDENT_7 ) ; org . IDENT_9 . api . mockito . IDENT_10 . METHOD_3 ( org . eclipse . core . resources . IDENT_11 . class ) ; org . eclipse . core . resources . IDENT_12 IDENT_13 = mock ( org . eclipse . core . resources . IDENT_12 . class ) ; when ( org . eclipse . core . resources . IDENT_11 . METHOD_4 ( ) ) . thenReturn ( IDENT_13 ) ; org . eclipse . core . resources . IDENT_14 IDENT_15 = mock ( org . eclipse . core . resources . IDENT_14 . class ) ; when ( IDENT_13 . METHOD_5 ( ) ) . thenReturn ( IDENT_15 ) ; org . talend . core . model . repository . IDENT_16 IDENT_17 = mock ( org . talend . core . model . repository . IDENT_16 . class ) ; when ( IDENT_2 . METHOD_6 ( ) ) . thenReturn ( IDENT_17 ) ; org . talend . core . model . properties . IDENT_18 IDENT_19 = mock ( org . talend . core . model . properties . IDENT_18 . class ) ; when ( IDENT_17 . getProperty ( ) ) . thenReturn ( IDENT_19 ) ; org . talend . core . model . properties . IDENT_20 IDENT_21 = mock ( org . talend . core . model . properties . IDENT_20 . class ) ; when ( IDENT_19 . METHOD_7 ( ) ) . thenReturn ( IDENT_21 ) ; org . eclipse . IDENT_22 . IDENT_23 . resource . IDENT_24 IDENT_25 = mock ( org . eclipse . IDENT_22 . IDENT_23 . resource . IDENT_24 . class ) ; when ( IDENT_21 . METHOD_8 ( ) ) . thenReturn ( IDENT_25 ) ; java . lang . String IDENT_26 = STRING_1 ; org . eclipse . IDENT_22 . common . util . URI IDENT_27 = org . eclipse . IDENT_22 . common . util . URI . METHOD_9 ( IDENT_26 ) ; when ( IDENT_25 . METHOD_10 ( ) ) . thenReturn ( IDENT_27 ) ; org . eclipse . core . resources . IDENT_28 IDENT_29 = mock ( org . eclipse . core . resources . IDENT_28 . class ) ; when ( IDENT_15 . METHOD_11 ( ( ( org . eclipse . core . runtime . Path ) ( any ( ) ) ) ) ) . thenReturn ( IDENT_29 ) ; org . eclipse . core . resources . IDENT_28 IDENT_30 = org . talend . IDENT_0 . helper . IDENT_8 . METHOD_12 ( IDENT_2 ) ; "<AssertPlaceHolder>" ; } METHOD_12 ( org . talend . repository . model . IDENT_31 ) { org . eclipse . core . resources . IDENT_28 file = null ; if ( node != null ) { try { IDENT_3 . IDENT_4 . IDENT_5 . core . IDENT_6 me = org . talend . IDENT_0 . helper . IDENT_8 . METHOD_13 ( node ) ; org . eclipse . core . resources . IDENT_14 root = org . eclipse . core . resources . IDENT_11 . METHOD_4 ( ) . METHOD_5 ( ) ; if ( me != null ) { org . eclipse . IDENT_22 . common . util . URI uri = me . METHOD_8 ( ) . METHOD_10 ( ) ; java . lang . String IDENT_32 = uri . METHOD_14 ( Boolean . IDENT_33 ) ; if ( IDENT_32 == null ) { IDENT_32 = uri . METHOD_15 ( ) ; } file = root . METHOD_11 ( new org . eclipse . core . runtime . Path ( IDENT_32 ) ) ; } else if ( ( node . METHOD_6 ( ) ) != null ) { org . talend . core . model . properties . IDENT_18 property = node . METHOD_6 ( ) . getProperty ( ) ; if ( property != null ) { org . talend . core . model . properties . IDENT_20 item = property . METHOD_7 ( ) ; org . eclipse . IDENT_22 . common . util . URI uri = item . METHOD_8 ( ) . METHOD_10 ( ) ; java . lang . String IDENT_26 = uri . METHOD_14 ( Boolean . IDENT_33 ) ; if ( IDENT_26 == null ) { IDENT_26 = uri . METHOD_15 ( ) ; } int IDENT_34 = IDENT_26 . METHOD_16 ( STRING_2 ) ; java . lang . String IDENT_35 = ( ( IDENT_26 . substring ( 0 , METHOD_16 ) ) + STRING_2 ) + ( org . talend . IDENT_0 . helper . IDENT_8 . METHOD_17 ( item ) ) ; file = root . METHOD_11 ( new org . eclipse . core . runtime . Path ( IDENT_35 ) ) ; } } } catch ( java . lang . Exception e ) { org . talend . IDENT_0 . helper . IDENT_8 . log . error ( e , e ) ; } } return file ; }
org . junit . Assert . assertEquals ( IDENT_29 , IDENT_30 )