@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")); }
@After public void cleanupDataSource() throws Exception { TestUtils.deleteFrom(dataSource, "authz_approvals"); assertThat( jdbcTemplate.queryForObject("select count(*) from authz_approvals", Integer.class), is(0)); }