خرید بک لینک

Vote count: 0

We are using Easy Mock for creating JUnit test case in java with H2 database. As code of fetching the Blob content is specific to Oracle and getting the following error. ClassCastException: Caot cast org.h2.jdbc.JdbcResultSet (id=72) to oracle.jdbc.driver.OracleResultSet

public BLOB getBLOB(String field) throws SQLException {
              try {retu ((OracleResultSet) rs).getBLOB(field);
              } catch (NullPointerException e) {}}

Bit stuck with this as how can we handle this in Easy Mock without changing the above code.

asked 35 secs ago

- - , .
.

برچسب: نویسنده: استخدام کار تاريخ: دوشنبه 21 تير 1395 ساعت: 13:03

صفحه بندی