// free DB objects
finally {
try {
if (rs != null)
rs.close();
<------------------------------------------------------------------------------------------
} catch (Exception e) {
System.out.println("Cannot close ResultSet: " + e.getMessage());
<--------------------------------------------------------
}
try {
if (pst != null)
pst.close();
<---------------------------------------------------------------------------------
} catch (Exception e) {
System.out.println("Cannot close PreparedStatement: "
<-------------------------------------------------------------------------------
+ e.getMessage());
<----------------------------------------------------------------------
}
dbManager.freeConnection(conn);
}
return false;
}
I don't know how to cover these arrowed parts.
I can I force ResultSet(rs) and Prepared Statement(pst) to make a
error and throw exception???
It turns about that, If I miss these 2 parts, I lose 40% of my
coverage!!!
Any ideas???
Beom-soo Kim