METHOD_0 ( ) { IDENT_0 . config = IDENT_1 ; IDENT_0 . IDENT_2 = false ; METHOD_1 ( IDENT_1 ) ; expect ( IDENT_1 . METHOD_2 ( ) ) . andReturn ( false ) . METHOD_3 ( ) ; expect ( IDENT_1 . METHOD_4 ( ) ) . andReturn ( new java . util . Properties ( ) ) . METHOD_3 ( ) ; expect ( IDENT_1 . METHOD_5 ( ) ) . andReturn ( null ) . METHOD_3 ( ) ; expect ( IDENT_1 . METHOD_6 ( ) ) . andReturn ( IDENT_3 . url ) . METHOD_3 ( ) ; replay ( IDENT_1 ) ; "<AssertPlaceHolder>" ; verify ( IDENT_1 ) ; driver . METHOD_7 ( new com . IDENT_4 . IDENT_5 . METHOD_8 ( ) { public java . sql . IDENT_6 METHOD_9 ( ) throws java . sql . IDENT_7 { throw new java . sql . METHOD_10 ( ) ; } } ) ; METHOD_1 ( IDENT_1 ) ; expect ( IDENT_1 . METHOD_2 ( ) ) . andReturn ( false ) . METHOD_3 ( ) ; expect ( IDENT_1 . METHOD_4 ( ) ) . andReturn ( new java . util . Properties ( ) ) . METHOD_3 ( ) ; expect ( IDENT_1 . METHOD_5 ( ) ) . andReturn ( null ) . METHOD_3 ( ) ; expect ( IDENT_1 . METHOD_6 ( ) ) . andReturn ( IDENT_3 . url ) . METHOD_3 ( ) ; replay ( IDENT_1 ) ; try { IDENT_0 . METHOD_11 ( ) ; } catch ( java . sql . METHOD_10 e ) { } driver . METHOD_12 ( ) ; } METHOD_11 ( ) { java . sql . IDENT_6 result = null ; javax . sql . IDENT_8 IDENT_9 = this . config . METHOD_5 ( ) ; java . lang . String url = this . config . METHOD_6 ( ) ; java . lang . String IDENT_10 = this . config . METHOD_13 ( ) ; java . lang . String IDENT_11 = this . config . METHOD_14 ( ) ; java . util . Properties props = this . config . METHOD_4 ( ) ; boolean IDENT_12 = this . config . METHOD_2 ( ) ; if ( IDENT_12 && ( props == null ) ) { props = new java . util . Properties ( ) ; } if ( IDENT_9 != null ) { return IDENT_10 == null ? IDENT_9 . METHOD_15 ( ) : IDENT_9 . METHOD_15 ( IDENT_10 , IDENT_11 ) ; } if ( ! ( this . IDENT_2 ) ) { try { this . IDENT_2 = true ; if ( props != null ) { result = java . sql . IDENT_13 . METHOD_15 ( url , props ) ; } else { result = java . sql . IDENT_13 . METHOD_15 ( url , IDENT_10 , IDENT_11 ) ; } result . close ( ) ; } catch ( java . sql . METHOD_10 t ) { } } if ( props != null ) { result = java . sql . IDENT_13 . METHOD_15 ( url , props ) ; } else { result = java . sql . IDENT_13 . METHOD_15 ( url , IDENT_10 , IDENT_11 ) ; } if ( ( this . IDENT_14 ) != null ) { result . METHOD_16 ( this . IDENT_14 ) ; } return result ; }
org . junit . Assert . assertNotNull ( IDENT_0 . METHOD_11 ( ) )