node.setFunction(new MockFunction(target));
graph.addDependencyNode(node);
}
DependencyGraph filtered = graph.subGraph(ApplyToAllTargets.INSTANCE);
assertEquals(filtered.getDependencyNodes(), graph.getDependencyNodes());
filtered = graph.subGraph(new ComputationTargetFilter(new DefaultComputationTargetResolver().atVersionCorrection(VersionCorrection.LATEST)) {
@Override
public boolean accept(final ComputationTarget target) {
return target.getUniqueId().getValue().compareTo("5") >= 0;
}
});