public Void apply(ResultSet a0) {
try {
final BigDecimal bigDecimal = a0.getBigDecimal(1);
fail("expected error, got " + bigDecimal);
} catch (SQLException e) {
throw new RuntimeException(e);
} catch (NoSuchElementException e) {
}
try {
assertTrue(a0.next());
final BigDecimal bigDecimal = a0.getBigDecimal(1);
assertThat(bigDecimal, equalTo(BigDecimal.valueOf(2008)));
} catch (SQLException e) {
throw new RuntimeException(e);
}
return null;
}
|