DownloaderApp extends DataBridgeApp { public DownloaderApp() { argParser = new ArgumentParser("herd-downloader-app"); } DownloaderApp(); @Override ReturnValue go(String[] args); @Override ArgumentParser getArgumentParser(); @SuppressWarnings("PMD.DoNotCallSystemExit") // Using System.exit is allowed for an actual application to exit. static void main(String[] args);  }
@Test public void testDownloaderApp() throws Exception { File manifestFile = createManifestFile(LOCAL_TEMP_PATH_INPUT.toString(), getTestDownloaderInputManifestDto()); final String[] args = new String[] {"-a", S3_ACCESS_KEY, "-p", S3_SECRET_KEY, "-e", S3_ENDPOINT_US_STANDARD, "-l", LOCAL_TEMP_PATH_OUTPUT.toString(), "-m", manifestFile.getPath(), "-H", WEB_SERVICE_HOSTNAME, "-P", WEB_SERVICE_HTTPS_PORT.toString(), "-s", "true", "-u", WEB_SERVICE_HTTPS_USERNAME, "-w", WEB_SERVICE_HTTPS_PASSWORD, "-C", "true", "-d", "true", "-n", HTTP_PROXY_HOST, "-o", HTTP_PROXY_PORT.toString()}; runDataBridgeAndCheckReturnValue(downloaderApp, args, DataBridgeWebClient.class, DataBridgeApp.ReturnValue.SUCCESS); }