use of com.blackducksoftware.integration.hub.detect.util.filter.DetectNameFilter in project hub-detect by blackducksoftware.
the class AllAndNoneExcludedIncludedFilterTest method testNonOverridableNormalExcludeList.
// NonOverridable
@Test
public void testNonOverridableNormalExcludeList() {
DetectFilter filter = new DetectNameFilter("docker,rubygems", "");
assertFalse(filter.shouldInclude("docker"));
assertFalse(filter.shouldInclude("rubygems"));
assertTrue(filter.shouldInclude("gradle"));
}
use of com.blackducksoftware.integration.hub.detect.util.filter.DetectNameFilter in project hub-detect by blackducksoftware.
the class AllAndNoneExcludedIncludedFilterTest method testNonOverridableAllExcluded.
@Test
public void testNonOverridableAllExcluded() {
DetectFilter filter = new DetectNameFilter("ALL", "");
assertTrue(filter.shouldInclude("docker"));
assertTrue(filter.shouldInclude("rubygems"));
assertTrue(filter.shouldInclude("gradle"));
}
use of com.blackducksoftware.integration.hub.detect.util.filter.DetectNameFilter in project hub-detect by blackducksoftware.
the class AllAndNoneExcludedIncludedFilterTest method testNonOverridableAllExcludedWithIgnoredIncludes.
@Test
public void testNonOverridableAllExcludedWithIgnoredIncludes() {
DetectFilter filter = new DetectNameFilter("ALL", "docker,rubygems");
assertTrue(filter.shouldInclude("docker"));
assertTrue(filter.shouldInclude("rubygems"));
assertFalse(filter.shouldInclude("gradle"));
}
use of com.blackducksoftware.integration.hub.detect.util.filter.DetectNameFilter in project hub-detect by blackducksoftware.
the class AllAndNoneExcludedIncludedFilterTest method testNonOverridableNormalIncludeList.
@Test
public void testNonOverridableNormalIncludeList() {
DetectFilter filter = new DetectNameFilter("", "docker,rubygems");
assertTrue(filter.shouldInclude("docker"));
assertTrue(filter.shouldInclude("rubygems"));
assertFalse(filter.shouldInclude("gradle"));
}
Aggregations