@Test public void testNeccesaryRemoveArtifact() throws IOException { List<ArtifactSelector> list = new ArrayList<>(); list.add(selector); artifacts.add(artifact); config.setRemoveArtifact(list); TemporaryFolder folder = new TemporaryFolder(); folder.create(); ConfigurationChecker checker = new ConfigurationChecker(reporter, config); checker.process(artifacts); List<ProcessingMessage> messageList = reporter.getProcessingReport().getMessageList(); assertThat(messageList).isEmpty(); }
@Override public Collection<Artifact> process(Collection<Artifact> intermediates) { LOGGER.debug("Check for unnecessary configuration configuration ..."); checkForUnnecessaryInformation(intermediates); LOGGER.debug("Check for unnecessary configuration configuration... done."); return intermediates; }
ConfigurationChecker extends AbstractProcessor { @Override public Collection<Artifact> process(Collection<Artifact> intermediates) { LOGGER.debug("Check for unnecessary configuration configuration ..."); checkForUnnecessaryInformation(intermediates); LOGGER.debug("Check for unnecessary configuration configuration... done."); return intermediates; } }
ConfigurationChecker extends AbstractProcessor { @Override public Collection<Artifact> process(Collection<Artifact> intermediates) { LOGGER.debug("Check for unnecessary configuration configuration ..."); checkForUnnecessaryInformation(intermediates); LOGGER.debug("Check for unnecessary configuration configuration... done."); return intermediates; } ConfigurationChecker(IProcessingReporter reporter, Configuration config); }
ConfigurationChecker extends AbstractProcessor { @Override public Collection<Artifact> process(Collection<Artifact> intermediates) { LOGGER.debug("Check for unnecessary configuration configuration ..."); checkForUnnecessaryInformation(intermediates); LOGGER.debug("Check for unnecessary configuration configuration... done."); return intermediates; } ConfigurationChecker(IProcessingReporter reporter, Configuration config); @Override Collection<Artifact> process(Collection<Artifact> intermediates); }
ConfigurationChecker extends AbstractProcessor { @Override public Collection<Artifact> process(Collection<Artifact> intermediates) { LOGGER.debug("Check for unnecessary configuration configuration ..."); checkForUnnecessaryInformation(intermediates); LOGGER.debug("Check for unnecessary configuration configuration... done."); return intermediates; } ConfigurationChecker(IProcessingReporter reporter, Configuration config); @Override Collection<Artifact> process(Collection<Artifact> intermediates);  }