METHOD_0 ( ) { when ( connection . METHOD_1 ( IDENT_0 , IDENT_1 ) ) . thenReturn ( true ) ; "<AssertPlaceHolder>" ; verify ( connection ) . connect ( ) ; verify ( connection ) . METHOD_1 ( IDENT_0 , IDENT_1 ) ; } METHOD_2 ( java . lang . String , int , java . lang . String , java . lang . String , boolean , java . lang . String , java . lang . String , int , org . pentaho . di . core . IDENT_2 . IDENT_3 , java . lang . String , int , java . lang . String , java . lang . String ) { com . IDENT_4 . IDENT_5 . IDENT_6 conn = null ; char [ ] content = null ; boolean IDENT_7 = false ; try { if ( IDENT_8 ) { if ( org . pentaho . di . core . util . Utils . isEmpty ( IDENT_9 ) ) { throw new org . pentaho . di . core . exception . METHOD_3 ( org . pentaho . di . IDENT_10 . IDENT_11 . getString ( IDENT_12 . IDENT_13 , STRING_0 ) ) ; } org . apache . commons . IDENT_14 . IDENT_15 IDENT_16 = org . pentaho . di . core . IDENT_17 . IDENT_18 . METHOD_4 ( IDENT_9 ) ; if ( ! ( IDENT_16 . exists ( ) ) ) { throw new org . pentaho . di . core . exception . METHOD_3 ( org . pentaho . di . IDENT_10 . IDENT_11 . getString ( IDENT_12 . IDENT_13 , STRING_1 , IDENT_9 ) ) ; } org . apache . commons . IDENT_14 . IDENT_19 IDENT_20 = IDENT_16 . METHOD_5 ( ) ; java . io . IDENT_21 IDENT_22 = new java . io . METHOD_6 ( ( ( int ) ( IDENT_20 . METHOD_7 ( ) ) ) ) ; try ( java . io . InputStream in = IDENT_20 . METHOD_8 ( ) ) { org . apache . commons . io . IDENT_23 . METHOD_9 ( in , IDENT_22 ) ; } content = IDENT_22 . METHOD_10 ( ) ; } conn = org . pentaho . di . IDENT_24 . IDENT_25 . IDENT_26 . IDENT_27 . METHOD_11 ( IDENT_28 , port ) ; if ( ! ( org . pentaho . di . core . util . Utils . isEmpty ( IDENT_29 ) ) ) { conn . METHOD_12 ( new com . IDENT_4 . IDENT_5 . METHOD_13 ( IDENT_30 , IDENT_31 , IDENT_29 , IDENT_32 ) ) ; } else { conn . METHOD_12 ( new com . IDENT_4 . IDENT_5 . METHOD_13 ( IDENT_30 , IDENT_31 ) ) ; } } if ( IDENT_33 == 0 ) { conn . connect ( ) ; } else { conn . connect ( null , 0 , ( IDENT_33 * 1000 ) ) ; } if ( IDENT_8 ) { IDENT_7 = conn . METHOD_14 ( IDENT_0 , content , IDENT_34 . METHOD_15 ( IDENT_35 ) ) ; } else { IDENT_7 = conn . METHOD_1 ( IDENT_0 , IDENT_1 ) ; } if ( IDENT_7 == false ) { throw new org . pentaho . di . core . exception . METHOD_3 ( org . pentaho . di . IDENT_10 . IDENT_11 . getString ( IDENT_12 . IDENT_13 , STRING_2 , IDENT_0 ) ) ; } } catch ( java . lang . Exception e ) { if ( conn != null ) { conn . close ( ) ; } throw new org . pentaho . di . core . exception . METHOD_3 ( org . pentaho . di . IDENT_10 . IDENT_11 . getString ( IDENT_12 . IDENT_13 , STRING_3 , IDENT_28 , IDENT_0 ) , e ) ; } return conn ; }
org . junit . Assert . assertNotNull ( org . pentaho . di . IDENT_24 . IDENT_25 . IDENT_26 . IDENT_27 . METHOD_2 ( server , port , IDENT_0 , IDENT_1 , false , null , null , 0 , null , null , 0 , null , null ) )