Mercurial > hg > monetdb-java
comparison tests/OnClientTester.java @ 545:79393647d7fb onclient
Call Class.forName("...MonetDriver") from main() in OnClientTester
Otherwise my test program doesn't run anymore. It used to, I don't know what changed.
author | Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com> |
---|---|
date | Tue, 14 Sep 2021 09:20:41 +0200 (2021-09-14) |
parents | c71ce17fa724 |
children | d1f6678f92c5 |
comparison
equal
deleted
inserted
replaced
544:c71ce17fa724 | 545:79393647d7fb |
---|---|
18 | 18 |
19 public OnClientTester(String jdbcUrl, int verbosity, boolean watchDogEnabled) { | 19 public OnClientTester(String jdbcUrl, int verbosity, boolean watchDogEnabled) { |
20 super(jdbcUrl, verbosity, watchDogEnabled); | 20 super(jdbcUrl, verbosity, watchDogEnabled); |
21 } | 21 } |
22 | 22 |
23 public static void main(String[] args) throws SQLException, NoSuchMethodException { | 23 public static void main(String[] args) throws SQLException, NoSuchMethodException, ClassNotFoundException { |
24 String jdbcUrl = null; | 24 String jdbcUrl = null; |
25 String requiredPrefix = null; | 25 String requiredPrefix = null; |
26 int verbosity = 0; | 26 int verbosity = 0; |
27 boolean watchDogEnabled = true; | 27 boolean watchDogEnabled = true; |
28 | |
29 // Don't know why I need this all of a sudden.. is it only on my system? | |
30 Class.forName("org.monetdb.jdbc.MonetDriver"); | |
28 | 31 |
29 for (String arg : args) { | 32 for (String arg : args) { |
30 if (arg.equals("-v")) | 33 if (arg.equals("-v")) |
31 verbosity++; | 34 verbosity++; |
32 else if (arg.equals("-vv")) | 35 else if (arg.equals("-vv")) |