METHOD_0 ( ) { java . sql . IDENT_0 IDENT_1 = null ; java . sql . ResultSet rs = null ; java . util . List < com . baeldung . jdbc . IDENT_2 > IDENT_3 = new java . util . ArrayList < com . baeldung . jdbc . IDENT_2 > ( ) ; try { IDENT_1 = com . baeldung . jdbc . IDENT_4 . IDENT_5 . METHOD_1 ( STRING_0 , ResultSet . IDENT_6 , ResultSet . IDENT_7 ) ; IDENT_1 . METHOD_2 ( 1 ) ; rs = IDENT_1 . METHOD_3 ( ) ; rs . METHOD_2 ( 1 ) ; while ( rs . next ( ) ) { com . baeldung . jdbc . IDENT_2 IDENT_8 = METHOD_4 ( rs ) ; IDENT_3 . add ( IDENT_8 ) ; } } catch ( java . lang . Exception e ) { throw e ; } finally { if ( rs != null ) rs . close ( ) ; if ( IDENT_1 != null ) IDENT_1 . close ( ) ; } "<AssertPlaceHolder>" ; } size ( ) { return elements . size ( ) ; }
org . junit . Assert . assertEquals ( 2 , IDENT_3 . size ( ) )