METHOD_0 ( ) { java . io . File file = new java . io . File ( STRING_0 ) ; java . lang . String IDENT_0 = ( org . baeldung . java . io . IDENT_1 . METHOD_1 ( ) ) ? STRING_1 : STRING_0 ; java . lang . String IDENT_2 = file . getPath ( ) ; "<AssertPlaceHolder>" ; } getPath ( ) { java . nio . file . Path path = null ; try { path = java . nio . file . IDENT_3 . METHOD_2 ( null , STRING_2 ) ; } catch ( java . io . IOException e ) { com . baeldung . IDENT_4 . IDENT_5 . log . error ( e . getMessage ( ) ) ; } try ( java . io . IDENT_6 writer = java . nio . file . IDENT_3 . METHOD_3 ( path ) ) { writer . write ( STRING_3 ) ; } catch ( java . io . IOException e ) { com . baeldung . IDENT_4 . IDENT_5 . log . error ( e . getMessage ( ) ) ; } return path ; }
org . junit . Assert . assertEquals ( IDENT_0 , IDENT_2 )