ArgParser { ManifestBuilderProcess init(final String[] args) { final Config config = parseConfiguration(args); return new IIIFProducer(config); }  Config parseConfiguration(final String[] args);  }
@Test void testOptionalArgs2() throws URISyntaxException, MalformedURLException { parser = new ArgParser(); final String imageManifestUrl = ArgParserTest.class.getResource("/dimManifest.json").toURI().toURL().toString(); final String[] args; args = new String[]{"-v", "0000004595", "-x", testFileSource1, "-o", "/tmp/" + pid + "" + ".json", "-u", imageManifestUrl, "-c", configFilePath}; final ManifestBuilderProcess processor = parser.init(args); processor.run(); }
@Test void testRequiredArgs1() { parser = new ArgParser(); final String[] args; args = new String[]{"-v", "0000004595", "-x", testFileSource1, "-o", "/tmp/" + pid + "" + ".json", "-c", configFilePath}; final ManifestBuilderProcess processor = parser.init(args); processor.run(); }
@Test void testRequiredArgs2() { parser = new ArgParser(); final String[] args; args = new String[]{"-v", "0000004595", "-x", testFileSource1, "-o", "/tmp/" + pid + "" + ".json", "-c", configFilePath}; final ManifestBuilderProcess processor = parser.init(args); processor.run(); }
@Test void testRequiredArgs3() { parser = new ArgParser(); final String[] args; args = new String[]{"-v", "0000013106", "-x", testFileSource2, "-o", "/tmp/" + pid + "" + ".json", "-c", configFilePath}; final ManifestBuilderProcess processor = parser.init(args); processor.run(); }
@Test void testRequiredArgs4() { parser = new ArgParser(); final String[] args; args = new String[]{"-v", "0000012885", "-x", testFileSource3, "-o", "/tmp/" + pid + "" + ".json", "-c", configFilePath}; final ManifestBuilderProcess processor = parser.init(args); processor.run(); }
@Test void testOptionalArgs() { parser = new ArgParser(); final String[] args; args = new String[]{"-v", "0000004595", "-x", testFileSource1, "-o", "/tmp/" + pid + "" + ".json", "-c", configFilePath, "-s"}; final ManifestBuilderProcess processor = parser.init(args); processor.run(); }