METHOD_0 ( ) { org . pentaho . IDENT_0 . engine . IDENT_1 . core . IDENT_2 IDENT_3 = mock ( org . pentaho . IDENT_0 . engine . IDENT_1 . core . IDENT_2 . class ) ; factory . METHOD_1 ( STRING_0 ) ; factory . METHOD_2 ( STRING_1 ) ; java . sql . IDENT_4 IDENT_5 = factory . METHOD_3 ( IDENT_3 ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( org . pentaho . IDENT_0 . engine . IDENT_1 . core . IDENT_2 ) { if ( ( connection ) == null ) { final java . lang . String user ; if ( ( IDENT_6 ) == null ) { user = null ; } else { final java . lang . Object IDENT_7 = IDENT_3 . get ( IDENT_6 ) ; if ( IDENT_7 instanceof java . lang . String ) { user = java . lang . String . valueOf ( IDENT_7 ) ; } else { user = null ; } } final java . lang . String IDENT_8 ; if ( ( IDENT_9 ) == null ) { IDENT_8 = null ; } else { final java . lang . Object IDENT_9 = IDENT_3 . get ( this . IDENT_9 ) ; if ( IDENT_9 instanceof java . lang . String ) { IDENT_8 = java . lang . String . valueOf ( IDENT_9 ) ; } else { IDENT_8 = null ; } } connection = IDENT_10 . METHOD_4 ( user , IDENT_8 ) ; } if ( ( connection ) == null ) { throw new java . sql . METHOD_5 ( STRING_2 ) ; } return connection ; }
org . junit . Assert . assertThat ( IDENT_5 , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( connection ) ) )