@Test public void testDump() throws IOException { Map<String, String> props = createProperties(); launcher.execute(props, logOutput); assertDump(props); }
@Override public void execute(Map<String, String> props, LogOutput logOutput) { String filePath = props.get(InternalProperties.SCANNER_DUMP_TO_FILE); writeProperties(filePath, props); logger.info("Simulation mode. Configuration written to " + new File(filePath).getAbsolutePath()); }
SimulatedLauncher implements IsolatedLauncher { @Override public void execute(Map<String, String> props, LogOutput logOutput) { String filePath = props.get(InternalProperties.SCANNER_DUMP_TO_FILE); writeProperties(filePath, props); logger.info("Simulation mode. Configuration written to " + new File(filePath).getAbsolutePath()); } }
SimulatedLauncher implements IsolatedLauncher { @Override public void execute(Map<String, String> props, LogOutput logOutput) { String filePath = props.get(InternalProperties.SCANNER_DUMP_TO_FILE); writeProperties(filePath, props); logger.info("Simulation mode. Configuration written to " + new File(filePath).getAbsolutePath()); } SimulatedLauncher(String version, Logger logger); }
SimulatedLauncher implements IsolatedLauncher { @Override public void execute(Map<String, String> props, LogOutput logOutput) { String filePath = props.get(InternalProperties.SCANNER_DUMP_TO_FILE); writeProperties(filePath, props); logger.info("Simulation mode. Configuration written to " + new File(filePath).getAbsolutePath()); } SimulatedLauncher(String version, Logger logger); @Override void execute(Map<String, String> props, LogOutput logOutput); @Override String getVersion(); }
SimulatedLauncher implements IsolatedLauncher { @Override public void execute(Map<String, String> props, LogOutput logOutput) { String filePath = props.get(InternalProperties.SCANNER_DUMP_TO_FILE); writeProperties(filePath, props); logger.info("Simulation mode. Configuration written to " + new File(filePath).getAbsolutePath()); } SimulatedLauncher(String version, Logger logger); @Override void execute(Map<String, String> props, LogOutput logOutput); @Override String getVersion();  }