Configure extends AbstractCommandLineTool { public static void main(String[] args) { new Configure().doMain(args); } Configure(); static void printUsage(); static void main(String[] args); void setParameterFile(String parameterFile); void setProcessFile(String processFile); void setReadParameter(boolean readParameter); void setExitOnError(boolean exitOnError); void marshal(ParameterFile data, OutputStream outputStream); ParameterFile unmarshal(InputStream inputStream); @Override void run(); void writeParameter(); void processFile(Path file);  }
@Test void test_Main() throws IOException { final Path testFile = Files.createTempFile("TestConfigure_server", "xml"); final Path sourceFile = Paths.get("./src/test/resources/stroom/util/config/server.xml"); Files.deleteIfExists(testFile); Files.copy(sourceFile, testFile); Configure.main(new String[]{ "parameterFile=./src/test/resources/stroom/util/config/ConfigureTestParameters.xml", "processFile=" + FileUtil.getCanonicalPath(testFile), "readParameter=false", "exitOnError=false"}); }