(String[] args)
| 8 | public static String[] args = {}; |
| 9 | |
| 10 | public static void main(String[] args) { |
| 11 | Main.args = args; |
| 12 | var argsList = java.util.Arrays.asList(args); |
| 13 | var isBaseTests = argsList.contains("--baseTests"); |
| 14 | var runAll = argsList.contains("--all"); |
| 15 | var isWs = argsList.contains("--ws"); |
| 16 | |
| 17 | var argsWithoutFlags = argsList.stream().filter(arg -> !arg.startsWith("--")).toArray(String[]::new); |
| 18 | String exchangeId = null; |
| 19 | String symbol = null; |
| 20 | String methodName = null; |
| 21 | if (argsWithoutFlags.length > 0) { |
| 22 | exchangeId = argsWithoutFlags[0]; |
| 23 | symbol = (argsWithoutFlags.length > 1) ? argsWithoutFlags[1] : null; |
| 24 | methodName = (argsWithoutFlags.length > 2) ? argsWithoutFlags[2] : null; |
| 25 | } |
| 26 | System.out.println("Running tests..."); |
| 27 | |
| 28 | if (isBaseTests) { |
| 29 | System.out.println("Running base tests..."); |
| 30 | var baseTests = new TestInit(); |
| 31 | baseTests.baseTestsInit().join(); |
| 32 | return; |
| 33 | } |
| 34 | var testsClass = new TestMain(); |
| 35 | testsClass.init(exchangeId, symbol, methodName).join(); |
| 36 | } |
| 37 | } |
nothing calls this directly
no test coverage detected