@Test public void testBlacklistBundle() throws IOException { String blacklisted = "mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jasypt/1.7_1"; Stream<Feature> features = blacklistWith(blacklisted); Stream<BundleInfo> bundles = features.flatMap(f -> f.getBundles().stream()); assertTrue(bundles.noneMatch(b -> b.getLocation().equals(blacklisted) && !b.isBlacklisted())); }
public void blacklistBundle(LocationPattern locationPattern) { bundleBlacklist.add(locationPattern); }
Blacklist { public void blacklistBundle(LocationPattern locationPattern) { bundleBlacklist.add(locationPattern); } }
Blacklist { public void blacklistBundle(LocationPattern locationPattern) { bundleBlacklist.add(locationPattern); } Blacklist();  Blacklist(List<String> blacklist);  Blacklist(String blacklistUrl); }
Blacklist { public void blacklistBundle(LocationPattern locationPattern) { bundleBlacklist.add(locationPattern); } Blacklist();  Blacklist(List<String> blacklist);  Blacklist(String blacklistUrl); boolean isRepositoryBlacklisted(String uri); boolean isFeatureBlacklisted(String name, String version); boolean isBundleBlacklisted(String uri); void merge(Blacklist others); Clause[] getClauses(); void blacklist(Features featuresModel); void blacklistRepository(LocationPattern locationPattern); void blacklistFeature(FeaturePattern featurePattern); void blacklistBundle(LocationPattern locationPattern); List<LocationPattern> getRepositoryBlacklist(); List<FeaturePattern> getFeatureBlacklist(); List<LocationPattern> getBundleBlacklist(); }
Blacklist { public void blacklistBundle(LocationPattern locationPattern) { bundleBlacklist.add(locationPattern); } Blacklist();  Blacklist(List<String> blacklist);  Blacklist(String blacklistUrl); boolean isRepositoryBlacklisted(String uri); boolean isFeatureBlacklisted(String name, String version); boolean isBundleBlacklisted(String uri); void merge(Blacklist others); Clause[] getClauses(); void blacklist(Features featuresModel); void blacklistRepository(LocationPattern locationPattern); void blacklistFeature(FeaturePattern featurePattern); void blacklistBundle(LocationPattern locationPattern); List<LocationPattern> getRepositoryBlacklist(); List<FeaturePattern> getFeatureBlacklist(); List<LocationPattern> getBundleBlacklist(); static Logger LOG; static final String BLACKLIST_URL; static final String BLACKLIST_TYPE; static final String TYPE_FEATURE; static final String TYPE_BUNDLE; static final String TYPE_REPOSITORY; }