@Test public void assertGetValueByLongVarBinary() throws SQLException { Blob blob = mock(Blob.class); when(resultSetMetaData.getColumnType(1)).thenReturn(Types.LONGVARBINARY); when(resultSet.getBlob(1)).thenReturn(blob); assertThat((Blob) QueryResultUtil.getValue(resultSet, 1), is(blob)); }
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);  }