@@ -105,5 +105,117 @@ public Integer getRandomTestOrderSeed() {
105
105
return randomTestOrderSeed ;
106
106
}
107
107
108
- public String [] getCoverageSchemes () { return coverageSchemes ; }
108
+ public String [] getCoverageSchemes () {
109
+ return coverageSchemes ;
110
+ }
111
+
112
+ public static class Builder {
113
+
114
+ private String connectString ;
115
+ private String [] suitePaths ;
116
+ private ReporterConfig [] reporters ;
117
+ private boolean outputAnsiColor ;
118
+ private Integer failureExitCode ;
119
+ private boolean skipCompatibilityCheck ;
120
+ private String [] includePackages ;
121
+ private String [] excludePackages ;
122
+ private FileMapperConfig sourceMapping ;
123
+ private FileMapperConfig testMapping ;
124
+ private ConfigLevel logConfigLevel ;
125
+ private Integer timeoutInMinutes ;
126
+ private boolean dbmsOutput ;
127
+ private boolean randomTestOrder ;
128
+ private Integer randomTestOrderSeed ;
129
+ private String [] tags ;
130
+ private String [] coverageSchemes ;
131
+
132
+ public Builder connectString (String connectString ) {
133
+ this .connectString = connectString ;
134
+ return this ;
135
+ }
136
+
137
+ public Builder suitePaths (String [] suitePaths ) {
138
+ this .suitePaths = suitePaths ;
139
+ return this ;
140
+ }
141
+
142
+ public Builder reporters (ReporterConfig [] reporters ) {
143
+ this .reporters = reporters ;
144
+ return this ;
145
+ }
146
+
147
+ public Builder outputAnsiColor (boolean outputAnsiColor ) {
148
+ this .outputAnsiColor = outputAnsiColor ;
149
+ return this ;
150
+ }
151
+
152
+ public Builder failureExitCode (Integer failureExitCode ) {
153
+ this .failureExitCode = failureExitCode ;
154
+ return this ;
155
+ }
156
+
157
+ public Builder skipCompatibilityCheck (boolean skipCompatibilityCheck ) {
158
+ this .skipCompatibilityCheck = skipCompatibilityCheck ;
159
+ return this ;
160
+ }
161
+
162
+ public Builder includePackages (String [] includePackages ) {
163
+ this .includePackages = includePackages ;
164
+ return this ;
165
+ }
166
+
167
+ public Builder excludePackages (String [] excludePackages ) {
168
+ this .excludePackages = excludePackages ;
169
+ return this ;
170
+ }
171
+
172
+ public Builder sourceMapping (FileMapperConfig sourceMapping ) {
173
+ this .sourceMapping = sourceMapping ;
174
+ return this ;
175
+ }
176
+
177
+ public Builder testMapping (FileMapperConfig testMapping ) {
178
+ this .testMapping = testMapping ;
179
+ return this ;
180
+ }
181
+
182
+ public Builder logConfigLevel (ConfigLevel logConfigLevel ) {
183
+ this .logConfigLevel = logConfigLevel ;
184
+ return this ;
185
+ }
186
+
187
+ public Builder timeoutInMinutes (Integer timeoutInMinutes ) {
188
+ this .timeoutInMinutes = timeoutInMinutes ;
189
+ return this ;
190
+ }
191
+
192
+ public Builder dbmsOutput (boolean dbmsOutput ) {
193
+ this .dbmsOutput = dbmsOutput ;
194
+ return this ;
195
+ }
196
+
197
+ public Builder randomTestOrder (boolean randomTestOrder ) {
198
+ this .randomTestOrder = randomTestOrder ;
199
+ return this ;
200
+ }
201
+
202
+ public Builder randomTestOrderSeed (Integer randomTestOrderSeed ) {
203
+ this .randomTestOrderSeed = randomTestOrderSeed ;
204
+ return this ;
205
+ }
206
+
207
+ public Builder tags (String [] tags ) {
208
+ this .tags = tags ;
209
+ return this ;
210
+ }
211
+
212
+ public Builder coverageSchemes (String [] coverageSchemes ) {
213
+ this .coverageSchemes = coverageSchemes ;
214
+ return this ;
215
+ }
216
+
217
+ public RunCommandConfig create () {
218
+ return new RunCommandConfig (connectString , suitePaths , reporters , outputAnsiColor , failureExitCode , skipCompatibilityCheck , includePackages , excludePackages , sourceMapping , testMapping , logConfigLevel , timeoutInMinutes , dbmsOutput , randomTestOrder , randomTestOrderSeed , tags , coverageSchemes );
219
+ }
220
+ }
109
221
}
0 commit comments