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