DependenciesFilter { protected Predicate<ArtifactCoordinates> hasClassifier(String classifier) { return dep -> StringUtils.equals(classifier, dep.getClassifier()); } DependenciesFilter();  DependenciesFilter(String classifier, String scope); Set<ArtifactCoordinates> filter(ProjectDependencyNode node);  }
@Test public void hasClassifierTrueTest() { assertThat("Predicate should return true", filter.hasClassifier(CLASSIFIER_A).test(artifactCoordinates_a), equalTo(true)); }
@Test public void hasClassifierFalseTest() { assertThat("Predicate should return false", filter.hasClassifier(CLASSIFIER_B).test(artifactCoordinates_a), equalTo(false)); }
@Test public void hasClassifierNullTest() { assertThat("Predicate should return false", filter.hasClassifier(null).test(artifactCoordinates_a), equalTo(false)); }
@Test public void hasTypeFalseTest() { assertThat("Predicate should return false", filter.hasClassifier(TYPE_B).test(artifactCoordinates_a), equalTo(false)); }
@Test public void hasTypeNullTest() { assertThat("Predicate should return false", filter.hasClassifier(null).test(artifactCoordinates_a), equalTo(false)); }