AskResultSet extends AbstractResultSet { @Override public short getShort(int columnIndex) { ensureState(); throw unsupported("short"); } AskResultSet(boolean result); @Override int findColumn(String columnLabel); @Override int getColumnCount(); @Override boolean isBound(int variableIndex); @Override boolean isBound(String variableName); @Override boolean getBoolean(int columnIndex); @Override boolean getBoolean(String columnLabel); @Override byte getByte(int columnIndex); @Override byte getByte(String columnLabel); @Override double getDouble(int columnIndex); @Override double getDouble(String columnLabel); @Override float getFloat(int columnIndex); @Override float getFloat(String columnLabel); @Override int getInt(int columnIndex); @Override int getInt(String columnLabel); @Override long getLong(int columnIndex); @Override long getLong(String columnLabel); @Override Object getObject(int columnIndex); @Override Object getObject(String columnLabel); @Override T getObject(int columnIndex, Class<T> cls); @Override T getObject(String columnLabel, Class<T> cls); @Override short getShort(int columnIndex); @Override short getShort(String columnLabel); @Override String getString(int columnIndex); @Override String getString(String columnLabel); @Override boolean hasNext();  }
@Test public void getShortByIndexThrowsUnsupportedOperationException() { resultSet.next(); expectUnsupportedOperation("short"); resultSet.getShort(0); }
@Test public void getShortByVariableThrowsUnsupportedOperationException() { resultSet.next(); expectUnsupportedOperation("short"); resultSet.getShort("x"); }