protected void assertSingleValue(Statement stat,String sql,int expected) throws SQLException {
  ResultSet rs=stat.executeQuery(sql);
  assertTrue(rs.next());
  assertEquals(expected,rs.getInt(1));
  assertFalse(rs.next());
}

protected void assertSingleValue ( Statement stat , String sql , int expected ) throws SQLException { ResultSet rs = stat . executeQuery ( sql ) ; assertTrue ( rs . next ( ) ) ; assertEquals ( expected , rs . getInt ( 1 ) ) ; assertFalse ( rs . next ( ) ) ; }
check that the result set of a query is exactly this value .
