- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {Dictionary d =
new Hashtable()
Bundle bundle;bundle.getHeaders()
new Properties()
- Smart code suggestions by Codota
}
private static void finish() { finish(reporter.getErrors().size()); }
private static Reporter callMain(String... args) throws Exception { output = ConsoleInterceptor.copyOut(() -> { String[] argsNew = new String[args.length+1]; for(int i =0; i< args.length;i++) { argsNew[i] = args[i]; } argsNew[args.length] = "--no-exit"; CLIMain.main(argsNew); errors = CLIMain.getReporter().getErrors(); }); return CLIMain.getReporter(); }
assertEquals(0, CLIMain.getReporter().getErrors().size());