METHOD_0 ( ) { org . pentaho . platform . plugin . action . IDENT_0 . IDENT_1 IDENT_2 = METHOD_1 ( IDENT_3 ) ; doReturn ( IDENT_4 ) . when ( IDENT_2 ) . METHOD_2 ( STRING_0 ) ; when ( IDENT_4 . METHOD_3 ( ) ) . thenReturn ( false ) ; when ( IDENT_4 . METHOD_4 ( ) ) . thenReturn ( IDENT_5 ) ; doReturn ( STRING_1 0 ) . when ( IDENT_2 ) . METHOD_5 ( STRING_2 ) ; doReturn ( STRING_3 ) . when ( IDENT_2 ) . METHOD_5 ( STRING_4 ) ; doReturn ( STRING_5 ) . when ( IDENT_2 ) . METHOD_5 ( STRING_1 ) ; doReturn ( STRING_6 ) . when ( IDENT_2 ) . METHOD_5 ( STRING_7 ) ; doReturn ( null ) . when ( IDENT_2 ) . METHOD_5 ( STRING_8 ) ; doReturn ( IDENT_6 ) . when ( IDENT_2 ) . METHOD_6 ( true ) ; when ( IDENT_6 . METHOD_7 ( STRING_8 ) ) . thenReturn ( IDENT_7 ) ; doReturn ( "" ) . when ( IDENT_2 ) . METHOD_8 ( IDENT_5 , IDENT_7 , false ) ; boolean action = IDENT_2 . METHOD_9 ( ) ; "<AssertPlaceHolder>" ; verify ( IDENT_4 ) . close ( ) ; } METHOD_9 ( ) { java . lang . String IDENT_8 = METHOD_5 ( org . pentaho . platform . plugin . action . IDENT_9 . IDENT_10 . IDENT_11 ) ; java . lang . Object IDENT_12 = METHOD_2 ( org . pentaho . platform . plugin . action . IDENT_9 . IDENT_10 . IDENT_13 ) ; if ( IDENT_12 != null ) { org . pentaho . platform . api . repository . IDENT_14 IDENT_15 = METHOD_10 ( org . pentaho . platform . plugin . action . IDENT_9 . IDENT_10 . IDENT_16 , IDENT_8 ) ; if ( IDENT_15 != null ) { IDENT_15 . METHOD_11 ( IDENT_8 ) ; java . io . IDENT_17 IDENT_18 = null ; if ( IDENT_12 instanceof java . lang . String ) { java . lang . String IDENT_19 = ( ( java . lang . String ) ( IDENT_12 ) ) ; if ( ( IDENT_19 . length ( ) ) > 0 ) { try { IDENT_18 = IDENT_15 . METHOD_12 ( METHOD_13 ( ) ) ; IDENT_18 . write ( IDENT_19 . getBytes ( org . pentaho . platform . util . messages . IDENT_20 . METHOD_14 ( ) ) ) ; IDENT_18 . METHOD_15 ( ) ; IDENT_18 . close ( ) ; IDENT_15 . METHOD_16 ( ) ; } catch ( java . lang . Exception e ) { error ( org . pentaho . platform . plugin . action . messages . IDENT_21 . getInstance ( ) . METHOD_17 ( STRING_9 ) , e ) ; return false ; } trace ( IDENT_19 ) ; return true ; } else { error ( org . pentaho . platform . plugin . action . messages . IDENT_21 . getInstance ( ) . METHOD_17 ( STRING_10 ) ) ; return false ; } } else if ( IDENT_12 instanceof java . io . InputStream ) { java . io . InputStream is = ( ( java . io . InputStream ) ( IDENT_12 ) ) ; byte [ ] IDENT_22 = new byte [ INT_0 ] ; int len ; IDENT_18 = IDENT_15 . METHOD_12 ( null ) ; while ( ( len = is . read ( IDENT_22 ) ) >= 0 ) { IDENT_18 . write ( IDENT_22 , 0 , len ) ; } IDENT_18 . METHOD_15 ( ) ; IDENT_18 . close ( ) ; IDENT_15 . METHOD_16 ( ) ; return true ; } else if ( IDENT_12 instanceof java . io . ByteArrayOutputStream ) { java . io . ByteArrayOutputStream IDENT_23 = ( ( java . io . ByteArrayOutputStream ) ( IDENT_12 ) ) ; IDENT_18 = IDENT_15 . METHOD_12 ( null ) ; IDENT_18 . write ( IDENT_23 . toByteArray ( ) ) ; IDENT_18 . METHOD_15 ( ) ; IDENT_18 . close ( ) ; IDENT_15 . METHOD_16 ( ) ; return true ; } else { error ( org . pentaho . platform . plugin . action . messages . IDENT_21 . getInstance ( ) . METHOD_17 ( STRING_11 , IDENT_12 . getClass ( ) . getName ( ) ) ) ; return false ; } } else { error ( org . pentaho . platform . plugin . action . messages . IDENT_21 . getInstance ( ) . METHOD_17 ( STRING_12 ) ) ; return false ; } } error ( org . pentaho . platform . plugin . action . messages . IDENT_21 . getInstance ( ) . METHOD_17 ( STRING_13 ) ) ; return false ; }
org . junit . Assert . assertTrue ( action )