@Test public void assertGetValueBySmallint() throws SQLException { when(resultSetMetaData.getColumnType(1)).thenReturn(Types.SMALLINT); when(resultSet.getShort(1)).thenReturn(Short.MAX_VALUE); assertThat((short) QueryResultUtil.getValue(resultSet, 1), is(Short.MAX_VALUE)); }
public static Object getValue(final ResultSet resultSet, final int columnIndex) throws SQLException { Object result = getValueByColumnType(resultSet, columnIndex); return resultSet.wasNull() ? null : result; }
QueryResultUtil { public static Object getValue(final ResultSet resultSet, final int columnIndex) throws SQLException { Object result = getValueByColumnType(resultSet, columnIndex); return resultSet.wasNull() ? null : result; } }
QueryResultUtil { public static Object getValue(final ResultSet resultSet, final int columnIndex) throws SQLException { Object result = getValueByColumnType(resultSet, columnIndex); return resultSet.wasNull() ? null : result; }  }
QueryResultUtil { public static Object getValue(final ResultSet resultSet, final int columnIndex) throws SQLException { Object result = getValueByColumnType(resultSet, columnIndex); return resultSet.wasNull() ? null : result; }  static Object getValue(final ResultSet resultSet, final int columnIndex); }
QueryResultUtil { public static Object getValue(final ResultSet resultSet, final int columnIndex) throws SQLException { Object result = getValueByColumnType(resultSet, columnIndex); return resultSet.wasNull() ? null : result; }  static Object getValue(final ResultSet resultSet, final int columnIndex);  }