@SuppressWarnings("deprecation") public void test_get() throws Exception { Assert.assertTrue(stmt == resultSet.getPoolableStatement()); Assert.assertTrue(raw == resultSet.getRawResultSet()); Assert.assertTrue(resultSet.next()); Assert.assertTrue(resultSet.wasNull() == false); resultSet.getString(1); Assert.assertTrue(resultSet.wasNull()); resultSet.getBoolean(1); resultSet.getByte(1); resultSet.getShort(1); resultSet.getInt(1); resultSet.getLong(1); resultSet.getFloat(1); resultSet.getDouble(1); resultSet.getBigDecimal(1); resultSet.getBigDecimal(1, 1); resultSet.getBytes(1); resultSet.getDate(1); resultSet.getTime(1); resultSet.getTimestamp(1); resultSet.getAsciiStream(1); resultSet.getUnicodeStream(1); resultSet.getBinaryStream(1); resultSet.getString("1"); resultSet.getBoolean("1"); resultSet.getByte("1"); resultSet.getShort("1"); resultSet.getInt("1"); resultSet.getLong("1"); resultSet.getFloat("1"); resultSet.getDouble("1"); resultSet.getBigDecimal("1"); resultSet.getBigDecimal("1", 1); resultSet.getBytes("1"); resultSet.getDate("1"); resultSet.getTime("1"); resultSet.getTimestamp("1"); resultSet.getAsciiStream("1"); resultSet.getUnicodeStream("1"); resultSet.getBinaryStream("1"); }
public void test_get_error() throws Exception { { SQLException error = null; try { resultSet.getString(0); } catch (SQLException ex) { error = ex; } Assert.assertNotNull(error); } { SQLException error = null; try { resultSet.getBoolean(0); } catch (SQLException ex) { error = ex; } Assert.assertNotNull(error); } { SQLException error = null; try { resultSet.getByte(0); } catch (SQLException ex) { error = ex; } Assert.assertNotNull(error); } { SQLException error = null; try { resultSet.getShort(0); } catch (SQLException ex) { error = ex; } Assert.assertNotNull(error); } { SQLException error = null; try { resultSet.getInt(0); } catch (SQLException ex) { error = ex; } Assert.assertNotNull(error); } { SQLException error = null; try { resultSet.getLong(0); } catch (SQLException ex) { error = ex; } Assert.assertNotNull(error); } { SQLException error = null; try { resultSet.getFloat(0); } catch (SQLException ex) { error = ex; } Assert.assertNotNull(error); } { SQLException error = null; try { resultSet.getDouble(0); } catch (SQLException ex) { error = ex; } Assert.assertNotNull(error); } { SQLException error = null; try { resultSet.getBigDecimal(0); } catch (SQLException ex) { error = ex; } Assert.assertNotNull(error); } { SQLException error = null; try { resultSet.getBigDecimal(0, 1); } catch (SQLException ex) { error = ex; } Assert.assertNotNull(error); } { SQLException error = null; try { resultSet.getBytes(0); } catch (SQLException ex) { error = ex; } Assert.assertNotNull(error); } { SQLException error = null; try { resultSet.getDate(0); } catch (SQLException ex) { error = ex; } Assert.assertNotNull(error); } { SQLException error = null; try { resultSet.getTime(0); } catch (SQLException ex) { error = ex; } Assert.assertNotNull(error); } { SQLException error = null; try { resultSet.getTimestamp(0); } catch (SQLException ex) { error = ex; } Assert.assertNotNull(error); } { SQLException error = null; try { resultSet.getAsciiStream(0); } catch (SQLException ex) { error = ex; } Assert.assertNotNull(error); } { SQLException error = null; try { resultSet.getUnicodeStream(0); } catch (SQLException ex) { error = ex; } Assert.assertNotNull(error); } { SQLException error = null; try { resultSet.getBinaryStream(0); } catch (SQLException ex) { error = ex; } Assert.assertNotNull(error); } // //////////////// { SQLException error = null; try { resultSet.getString("0"); } catch (SQLException ex) { error = ex; } Assert.assertNotNull(error); } { SQLException error = null; try { resultSet.getBoolean("0"); } catch (SQLException ex) { error = ex; } Assert.assertNotNull(error); } { SQLException error = null; try { resultSet.getByte("0"); } catch (SQLException ex) { error = ex; } Assert.assertNotNull(error); } { SQLException error = null; try { resultSet.getShort("0"); } catch (SQLException ex) { error = ex; } Assert.assertNotNull(error); } { SQLException error = null; try { resultSet.getInt("0"); } catch (SQLException ex) { error = ex; } Assert.assertNotNull(error); } { SQLException error = null; try { resultSet.getLong("0"); } catch (SQLException ex) { error = ex; } Assert.assertNotNull(error); } { SQLException error = null; try { resultSet.getFloat("0"); } catch (SQLException ex) { error = ex; } Assert.assertNotNull(error); } { SQLException error = null; try { resultSet.getDouble("0"); } catch (SQLException ex) { error = ex; } Assert.assertNotNull(error); } { SQLException error = null; try { resultSet.getBigDecimal("0"); } catch (SQLException ex) { error = ex; } Assert.assertNotNull(error); } { SQLException error = null; try { resultSet.getBigDecimal("0", 1); } catch (SQLException ex) { error = ex; } Assert.assertNotNull(error); } { SQLException error = null; try { resultSet.getBytes("0"); } catch (SQLException ex) { error = ex; } Assert.assertNotNull(error); } { SQLException error = null; try { resultSet.getDate("0"); } catch (SQLException ex) { error = ex; } Assert.assertNotNull(error); } { SQLException error = null; try { resultSet.getTime("0"); } catch (SQLException ex) { error = ex; } Assert.assertNotNull(error); } { SQLException error = null; try { resultSet.getTimestamp("0"); } catch (SQLException ex) { error = ex; } Assert.assertNotNull(error); } { SQLException error = null; try { resultSet.getAsciiStream("0"); } catch (SQLException ex) { error = ex; } Assert.assertNotNull(error); } { SQLException error = null; try { resultSet.getUnicodeStream("0"); } catch (SQLException ex) { error = ex; } Assert.assertNotNull(error); } { SQLException error = null; try { resultSet.getBinaryStream("0"); } catch (SQLException ex) { error = ex; } Assert.assertNotNull(error); } }