@Test public void testUnneccesaryRemoveArtifact() { List<ArtifactSelector> list = new ArrayList<>(); list.add(selector); config.setRemoveArtifact(list); ConfigurationChecker checker = new ConfigurationChecker(reporter, config); checker.process(artifacts); List<ProcessingMessage> messageList = reporter.getProcessingReport().getMessageList(); assertThat(messageList).isNotEmpty(); assertThat(messageList.get(0).getMessageType()).isEqualTo(MessageType.UNNECESSARY_CONFIG); }
@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);  }