@Test public void testDependencyToFilter() { NodeFilter baseFilter = new NodeNameInFilter("java.util.Date", "org.hibernate.**"); DependencyToFilter filter = new DependencyToFilter(baseFilter); DependencyGraph graph = dependencyGraph.filter(filter); assertThat(graph.getAllNodes(), hasSize(dependencyGraph.getAllNodes().size())); assertThat(graph.getEdge(a, b), nullValue()); assertThat(graph.getEdge(a, c), nullValue()); assertThat(graph.getEdge(a, d), nullValue()); assertThat(graph.getEdge(a, e), notNullValue()); assertThat(graph.getEdge(b, f), nullValue()); assertThat(graph.getEdge(c, g), nullValue()); assertThat(graph.getEdge(a, h), notNullValue()); assertThat(graph.getEdge(a, i), notNullValue()); assertThat(graph.getEdge(c, k), notNullValue()); assertThat(graph.getEdge(c, m), notNullValue()); }
public DependencyToFilter(NodeFilter baseFilter) { this.baseFilter = baseFilter; }
DependencyToFilter implements EdgeFilter { public DependencyToFilter(NodeFilter baseFilter) { this.baseFilter = baseFilter; } }
DependencyToFilter implements EdgeFilter { public DependencyToFilter(NodeFilter baseFilter) { this.baseFilter = baseFilter; } DependencyToFilter(NodeFilter baseFilter); }
DependencyToFilter implements EdgeFilter { public DependencyToFilter(NodeFilter baseFilter) { this.baseFilter = baseFilter; } DependencyToFilter(NodeFilter baseFilter); @Override boolean isAccepted(Dependency edge); }
DependencyToFilter implements EdgeFilter { public DependencyToFilter(NodeFilter baseFilter) { this.baseFilter = baseFilter; } DependencyToFilter(NodeFilter baseFilter); @Override boolean isAccepted(Dependency edge);  }