Skip to content

Commit

Permalink
extra sanity check
Browse files Browse the repository at this point in the history
  • Loading branch information
crawshaw committed Apr 6, 2009
1 parent 03f58d1 commit 4595574
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/test/StatementTest.java
Expand Up @@ -29,6 +29,10 @@ public class StatementTest
assertEquals(stat.executeUpdate("insert into s1 values (0);"), 1);
assertEquals(stat.executeUpdate("insert into s1 values (1);"), 1);
assertEquals(stat.executeUpdate("insert into s1 values (2);"), 1);
ResultSet rs = stat.executeQuery("select count(c1) from s1;");
assertTrue(rs.next());
assertEquals(rs.getInt(1), 3);
rs.close();
assertEquals(stat.executeUpdate("update s1 set c1 = 5;"), 3);
assertEquals(stat.executeUpdate("delete from s1;"), 0);
assertEquals(stat.executeUpdate("drop table s1;"), 0);
Expand Down

0 comments on commit 4595574

Please sign in to comment.