19
19
import java .util .Collection ;
20
20
import java .util .HashMap ;
21
21
import java .util .Map ;
22
-
22
+ import java . io . IOException ;
23
23
import org .jbpm .test .persistence .scripts .DatabaseType ;
24
24
import org .jbpm .test .persistence .scripts .PersistenceUnit ;
25
25
import org .jbpm .test .persistence .scripts .ScriptsBase ;
@@ -55,40 +55,48 @@ public static Collection<ScriptFilter[]> data() {
55
55
56
56
ScriptFilter [] sbPg = new ScriptFilter []{filter ("postgresql-springboot-jbpm-schema.sql" ,
57
57
"quartz_tables_postgres.sql" ).setSupportedDatabase (DatabaseType .POSTGRESQL )
58
- .setOptions (Option .DISALLOW_EMPTY_RESULTS , Option .THROW_ON_SCRIPT_ERROR ),
58
+ .setOptions (Option .DISALLOW_EMPTY_RESULTS ,
59
+ Option .THROW_ON_SCRIPT_ERROR ,
60
+ Option .NEW_GENERATOR_MAPPINGS_TRUE ),
59
61
filter ("postgresql-springboot-jbpm-drop-schema.sql" ,
60
62
"quartz_tables_drop_postgres.sql" )};
61
63
62
64
ScriptFilter [] pqlBytea = new ScriptFilter []{filter ("postgresql-bytea-jbpm-schema.sql" ,
63
65
"quartz_tables_postgres.sql" )
64
66
.setSupportedDatabase (DatabaseType .POSTGRESQL )
65
- .setOptions (Option .DISALLOW_EMPTY_RESULTS , Option .THROW_ON_SCRIPT_ERROR )
67
+ .setOptions (Option .DISALLOW_EMPTY_RESULTS ,
68
+ Option .THROW_ON_SCRIPT_ERROR )
66
69
.env ("org.kie.persistence.postgresql.useBytea" , "true" ),
67
70
filter ("postgresql-bytea-jbpm-drop-schema.sql" ,
68
71
"quartz_tables_drop_postgres.sql" )};
69
72
70
73
ScriptFilter [] pqlSpringBootBytea = new ScriptFilter []{filter ("postgresql-springboot-bytea-jbpm-schema.sql" ,
71
74
"quartz_tables_postgres.sql" )
72
75
.setSupportedDatabase (DatabaseType .POSTGRESQL )
73
- .setOptions (Option .DISALLOW_EMPTY_RESULTS , Option .THROW_ON_SCRIPT_ERROR )
76
+ .setOptions (Option .DISALLOW_EMPTY_RESULTS ,
77
+ Option .THROW_ON_SCRIPT_ERROR ,
78
+ Option .NEW_GENERATOR_MAPPINGS_TRUE )
74
79
.env ("org.kie.persistence.postgresql.useBytea" , "true" ),
75
80
filter ("postgresql-springboot-bytea-jbpm-drop-schema.sql" ,
76
81
"quartz_tables_drop_postgres.sql" )};
77
82
78
83
ScriptFilter [] sbOracle = new ScriptFilter []{filter ("oracle-springboot-jbpm-schema.sql" ,
79
84
"quartz_tables_oracle.sql" ).setSupportedDatabase (DatabaseType .ORACLE )
80
- .setOptions (Option .DISALLOW_EMPTY_RESULTS , Option .THROW_ON_SCRIPT_ERROR ),
85
+ .setOptions (Option .DISALLOW_EMPTY_RESULTS ,
86
+ Option .THROW_ON_SCRIPT_ERROR ),
81
87
filter ("oracle-springboot-jbpm-drop-schema.sql" ,
82
88
"quartz_tables_drop_oracle.sql" )};
83
89
84
90
ScriptFilter [] mySqlCluster = new ScriptFilter []{filter ("mysql-innodb-cluster-jbpm-schema.sql" ,
85
91
"quartz_tables_mysql_innodb.sql" ).setSupportedDatabase (DatabaseType .MYSQLINNODB )
86
- .setOptions (Option .DISALLOW_EMPTY_RESULTS , Option .THROW_ON_SCRIPT_ERROR ),
92
+ .setOptions (Option .DISALLOW_EMPTY_RESULTS ,
93
+ Option .THROW_ON_SCRIPT_ERROR ),
87
94
filter ("mysql-innodb-jbpm-drop-schema.sql" ,
88
95
"quartz_tables_drop_mysql_innodb.sql" )};
89
96
90
97
ScriptFilter [] taskAssigningTables = new ScriptFilter []{filter (Filter .OUT , "drop" , "bytea" , "springboot" , "cluster" )
91
- .setOptions (Option .DISALLOW_EMPTY_RESULTS , Option .THROW_ON_SCRIPT_ERROR ),
98
+ .setOptions (Option .DISALLOW_EMPTY_RESULTS ,
99
+ Option .THROW_ON_SCRIPT_ERROR ),
92
100
filter ("jbpm-drop-schema.sql" ,
93
101
"quartz_tables_drop_" ,
94
102
"task_assigning_tables_drop_" )};
@@ -107,7 +115,8 @@ public DDLScriptsTest(ScriptFilter createScript, ScriptFilter dropScript) {
107
115
private Map <String , Object > oldEnvironment ;
108
116
109
117
@ Before
110
- public void prepare () {
118
+ public void prepare () throws IOException {
119
+ replaceNewGeneratorMappingsValue (createScript );
111
120
oldEnvironment = new HashMap <>();
112
121
Map <String , Object > newEnvironment = createScript .getEnvironment ();
113
122
for (Map .Entry <String , Object > entry : newEnvironment .entrySet ()) {
0 commit comments