@Test public void testWithUnImplementedComponents() { init(false, true); AllComponentsImplementedChecker check = new AllComponentsImplementedChecker(architectureGraph, packageArchitecture); assertThat(check.isOk(), is(false)); assertThat(check.getViolationMessages(), hasSize(1)); assertThat(check.getViolationMessages().get(0), is("Another")); assertThat(check.getViolationMessage(), is("1 components without corresponding classes: [Another]")); }
@Override public String getViolationMessage() { return getViolationMessages().isEmpty() ? null : (getViolationMessages().size() + " components without corresponding classes: " + getViolationMessages()); }
AllComponentsImplementedChecker extends Checker { @Override public String getViolationMessage() { return getViolationMessages().isEmpty() ? null : (getViolationMessages().size() + " components without corresponding classes: " + getViolationMessages()); } }
AllComponentsImplementedChecker extends Checker { @Override public String getViolationMessage() { return getViolationMessages().isEmpty() ? null : (getViolationMessages().size() + " components without corresponding classes: " + getViolationMessages()); } AllComponentsImplementedChecker(DependencyGraph dependencyGraph, Architecture architecture); }
AllComponentsImplementedChecker extends Checker { @Override public String getViolationMessage() { return getViolationMessages().isEmpty() ? null : (getViolationMessages().size() + " components without corresponding classes: " + getViolationMessages()); } AllComponentsImplementedChecker(DependencyGraph dependencyGraph, Architecture architecture); @Override String getViolationMessage(); }
AllComponentsImplementedChecker extends Checker { @Override public String getViolationMessage() { return getViolationMessages().isEmpty() ? null : (getViolationMessages().size() + " components without corresponding classes: " + getViolationMessages()); } AllComponentsImplementedChecker(DependencyGraph dependencyGraph, Architecture architecture); @Override String getViolationMessage();  }