From 1126ad6a259a3f76d53d543801620c2123fddc7e Mon Sep 17 00:00:00 2001 From: Joram Barrez Date: Wed, 3 Jul 2024 12:13:24 +0200 Subject: [PATCH] Fix unit test by using generic SQL --- .../test/transaction/SpringTransactionIntegrationTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/flowable-spring/src/test/java/org/flowable/spring/test/transaction/SpringTransactionIntegrationTest.java b/modules/flowable-spring/src/test/java/org/flowable/spring/test/transaction/SpringTransactionIntegrationTest.java index ea5a57c0123..bb6a8eea2cb 100644 --- a/modules/flowable-spring/src/test/java/org/flowable/spring/test/transaction/SpringTransactionIntegrationTest.java +++ b/modules/flowable-spring/src/test/java/org/flowable/spring/test/transaction/SpringTransactionIntegrationTest.java @@ -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 @@ -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