METHOD_0 ( ) { java . sql . IDENT_0 connection = org . easymock . EasyMock . METHOD_1 ( java . sql . IDENT_0 . class ) ; connection . METHOD_2 ( false ) ; org . easymock . EasyMock . METHOD_3 ( ) ; connection . close ( ) ; org . easymock . EasyMock . METHOD_3 ( ) ; javax . sql . IDENT_1 IDENT_2 = org . easymock . EasyMock . METHOD_1 ( javax . sql . IDENT_1 . class ) ; IDENT_2 . METHOD_4 ( ) ; org . easymock . EasyMock . METHOD_3 ( ) . andReturn ( connection ) ; java . lang . System . setProperty ( STRING_0 , com . vaadin . IDENT_3 . data . util . IDENT_4 . connection . IDENT_5 . class . METHOD_5 ( ) ) ; javax . IDENT_6 . Context context = org . easymock . EasyMock . METHOD_1 ( javax . IDENT_6 . Context . class ) ; context . METHOD_6 ( STRING_1 ) ; org . easymock . EasyMock . METHOD_3 ( ) . andReturn ( IDENT_2 ) ; com . vaadin . IDENT_3 . data . util . IDENT_4 . connection . IDENT_5 . METHOD_7 ( context ) ; org . easymock . EasyMock . replay ( context , connection , IDENT_2 ) ; com . vaadin . IDENT_3 . data . util . IDENT_4 . connection . IDENT_7 pool = new com . vaadin . IDENT_3 . data . util . IDENT_4 . connection . METHOD_8 ( STRING_1 ) ; java . sql . IDENT_0 c = pool . METHOD_9 ( ) ; "<AssertPlaceHolder>" ; pool . METHOD_10 ( c ) ; org . easymock . EasyMock . verify ( context , connection , IDENT_2 ) ; } METHOD_9 ( ) { if ( ! ( IDENT_8 ) ) { METHOD_11 ( ) ; } if ( IDENT_9 . isEmpty ( ) ) { if ( ( IDENT_10 . size ( ) ) < ( IDENT_11 ) ) { IDENT_9 . add ( METHOD_12 ( ) ) ; } else { throw new java . sql . METHOD_13 ( STRING_2 ) ; } } java . sql . IDENT_0 c = IDENT_9 . iterator ( ) . next ( ) ; IDENT_9 . remove ( c ) ; IDENT_10 . add ( c ) ; return c ; }
org . junit . Assert . assertEquals ( connection , c )