@@ -0,0 +1,2362 @@
+package bisq.apitest.method;%0A%0Aimport lombok.extern.slf4j.Slf4j;%0A%0Aimport org.junit.runner.Description;%0Aimport org.junit.runner.JUnitCore;%0Aimport org.junit.runner.Result;%0Aimport org.junit.runner.notification.Failure;%0Aimport org.junit.runner.notification.RunListener;%0A%0Aimport static java.lang.String.format;%0A%0A/**%0A * Driver for running API method tests.%0A *%0A * This may not seem necessary, but test cases are contained in the apitest sub%0A * project's main sources, not its test sources.  An IDE will not automatically configure%0A * JUnit test launchers, and a gradle build will not automatically run the test cases.%0A *%0A * However, it is easy to manually configure an IDE launcher to run all, some or one%0A * JUnit test, and new gradle tasks should be provided to run all, some, or one test.%0A */%0A@Slf4j%0Apublic class MethodTestMain %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        JUnitCore jUnitCore = new JUnitCore();%0A        jUnitCore.addListener(new RunListener() %7B%0A            public void testStarted(Description description) %7B%0A                log.info(%22%7B%7D%22, description);%0A            %7D%0A%0A            public void testIgnored(Description description) %7B%0A                log.info(%22Ignored %7B%7D%22, description);%0A            %7D%0A%0A            public void testFailure(Failure failure) %7B%0A                log.error(%22Failed %7B%7D%22, failure.getTrace());%0A            %7D%0A        %7D);%0A        Result result = jUnitCore.run(GetVersionTest.class, GetBalanceTest.class, WalletProtectionTest.class);%0A        ResultUtil.printResult(result);%0A    %7D%0A%0A    private static class ResultUtil %7B%0A        public static void printResult(Result result) %7B%0A            log.info(%22Total tests: %7B%7D,  Failed: %7B%7D,  Ignored: %7B%7D%22,%0A                    result.getRunCount(),%0A                    result.getFailureCount(),%0A                    result.getIgnoreCount());%0A%0A            if (result.wasSuccessful()) %7B%0A                log.info(%22All tests passed%22, result.getRunCount());%0A            %7D else if (result.getFailureCount() %3E 0) %7B%0A                log.error(%22%7B%7D test(s) failed%22, result.getFailureCount());%0A                result.getFailures().iterator().forEachRemaining(f -%3E log.error(format(%22%25s.%25s()%25n%5Ct%25s%22,%0A                        f.getDescription().getTestClass().getName(),%0A                        f.getDescription().getMethodName(),%0A                        f.getTrace())));%0A            %7D%0A        %7D%0A    %7D%0A%7D%0A

Add driver for running method tests