Skip to content

Commit

Permalink
Fix unit test by using generic SQL
Browse files Browse the repository at this point in the history
  • Loading branch information
jbarrez committed Jul 3, 2024
1 parent 4482e36 commit 1126ad6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void testRollbackTransactionOnFlowableException() {

// Create a table that the userBean is supposed to fill with some data
JdbcTemplate jdbcTemplate = new JdbcTemplate(dataSource);
jdbcTemplate.execute("create table MY_TABLE (MY_TEXT varchar);");
jdbcTemplate.execute("create table MY_TABLE (MY_TEXT int);");

// The hello() method will start the process. The process will wait in a
// user task
Expand All @@ -76,7 +76,7 @@ public void testRollbackTransactionOnFlowableException() {
assertThat(jdbcTemplate.queryForObject("select count(*) from MY_TABLE", Long.class)).isZero();

// Cleanup
jdbcTemplate.execute("drop table MY_TABLE if exists;");
jdbcTemplate.execute("drop table MY_TABLE;");
}

@Test
Expand Down

0 comments on commit 1126ad6

Please sign in to comment.