コード例 #1
0
 @After
 public void cleanupDataSource() throws Exception {
   TestUtils.deleteFrom(dataSource, "authz_approvals");
   TestUtils.deleteFrom(dataSource, "users");
   assertEquals(0, template.queryForInt("select count(*) from authz_approvals"));
   assertEquals(0, template.queryForInt("select count(*) from users"));
 }
コード例 #2
0
 @After
 public void cleanupDataSource() throws Exception {
   TestUtils.deleteFrom(dataSource, "authz_approvals");
   assertThat(
       jdbcTemplate.queryForObject("select count(*) from authz_approvals", Integer.class), is(0));
 }