use of org.jboss.weld.metadata.FilterPredicate in project core by weld.
the class BeansXmlParsingTest method testExclusionFilters2.
@Test(expectedExceptions = Exception.class)
public void testExclusionFilters2() {
BeansXml xml = getBeansXml("cdi11-exclude-beans2.xml");
Collection<Metadata<Filter>> filters = xml.getScanning().getExcludes();
assertEquals(filters.size(), 1);
for (Metadata<Filter> filter : filters) {
new FilterPredicate(filter, DefaultResourceLoader.INSTANCE);
}
}
use of org.jboss.weld.metadata.FilterPredicate in project core by weld.
the class BeansXmlParsingTest method testExclusionFilters1.
@Test
public void testExclusionFilters1() {
BeansXml xml = getBeansXml("cdi11-exclude-beans1.xml");
Collection<Metadata<Filter>> filters = xml.getScanning().getExcludes();
assertEquals(filters.size(), 3);
for (Metadata<Filter> filter : filters) {
new FilterPredicate(filter, DefaultResourceLoader.INSTANCE);
}
}
Aggregations