File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
src/main/java/org/utplsql/cli Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 3
3
import com .beust .jcommander .JCommander ;
4
4
import com .beust .jcommander .Parameter ;
5
5
import com .beust .jcommander .ParameterException ;
6
+ import org .utplsql .api .exception .DatabaseNotCompatibleException ;
6
7
7
8
public class Cli {
8
9
@@ -34,6 +35,8 @@ public static void main(String[] args) {
34
35
} else {
35
36
jc .usage ();
36
37
}
38
+ } catch ( DatabaseNotCompatibleException e ) {
39
+ System .out .println (e .getMessage ());
37
40
} catch (Exception e ) {
38
41
e .printStackTrace ();
39
42
}
Original file line number Diff line number Diff line change 3
3
import com .beust .jcommander .Parameter ;
4
4
import com .beust .jcommander .Parameters ;
5
5
import org .utplsql .api .*;
6
+ import org .utplsql .api .compatibility .CompatibilityProxy ;
6
7
import org .utplsql .api .exception .DatabaseNotCompatibleException ;
7
8
import org .utplsql .api .exception .SomeTestsFailedException ;
8
9
import org .utplsql .api .reporter .Reporter ;
@@ -264,14 +265,10 @@ public List<ReporterOptions> getReporterOptionsList() {
264
265
*/
265
266
private void checkFrameworkCompatibility (Connection conn ) throws SQLException {
266
267
267
- if ( !skipCompatibilityCheck ) {
268
- try {
269
- DBHelper .failOnVersionCompatibilityCheckFailed (conn );
270
- } catch (DatabaseNotCompatibleException e ) {
271
- System .out .println (e .getMessage ());
268
+ CompatibilityProxy proxy = new CompatibilityProxy (conn , skipCompatibilityCheck );
272
269
273
- throw e ;
274
- }
270
+ if ( ! skipCompatibilityCheck ) {
271
+ proxy . failOnNotCompatible ();
275
272
}
276
273
else {
277
274
System .out .println ("Skipping Compatibility check with framework version, expecting the latest version " +
You can’t perform that action at this time.
0 commit comments