@Test public void testCheckWithoutMatchingRule() { init(true, false); DependencyChecker checker = new DependencyChecker(architectureGraph, packageArchitecture); assertThat(checker.isOk(), is(false)); assertThat(checker.getViolationMessages(), hasSize(1)); assertThat(checker.getViolationMessages().get(0), is("com.my.a.b --[READ_ONLY]--> org.other")); assertThat(checker.getViolationMessage(), is("1 uncovered dependencies: [com.my.a.b --[READ_ONLY]--> org.other]")); }
@Override public String getViolationMessage() { return getViolationMessages().isEmpty() ? null : (getViolationMessages().size() + " uncovered dependencies: " + getViolationMessages()); }
DependencyChecker extends Checker { @Override public String getViolationMessage() { return getViolationMessages().isEmpty() ? null : (getViolationMessages().size() + " uncovered dependencies: " + getViolationMessages()); } }
DependencyChecker extends Checker { @Override public String getViolationMessage() { return getViolationMessages().isEmpty() ? null : (getViolationMessages().size() + " uncovered dependencies: " + getViolationMessages()); } DependencyChecker(DependencyGraph dependencyGraph, Architecture architecture); }
DependencyChecker extends Checker { @Override public String getViolationMessage() { return getViolationMessages().isEmpty() ? null : (getViolationMessages().size() + " uncovered dependencies: " + getViolationMessages()); } DependencyChecker(DependencyGraph dependencyGraph, Architecture architecture); @Override String getViolationMessage(); }
DependencyChecker extends Checker { @Override public String getViolationMessage() { return getViolationMessages().isEmpty() ? null : (getViolationMessages().size() + " uncovered dependencies: " + getViolationMessages()); } DependencyChecker(DependencyGraph dependencyGraph, Architecture architecture); @Override String getViolationMessage();  }