use of com.blackducksoftware.integration.hub.bdio.model.dependency.Dependency in project hub-detect by blackducksoftware.
the class DependencyGraphAssertions method assertDoesNotHave.
private static void assertDoesNotHave(final DependencyGraph dependencyGraph, final String target, final ExternalId current) {
if (current == null) {
for (final Dependency dep : dependencyGraph.getRootDependencies()) {
assertDoesNotHave(dep, target);
assertDoesNotHave(dependencyGraph, target, dep.externalId);
}
} else {
for (final Dependency dep : dependencyGraph.getChildrenForParent(current)) {
assertDoesNotHave(dep, target);
assertDoesNotHave(dependencyGraph, target, dep.externalId);
}
}
}
Aggregations