validateFilter(filter, ScanTargetThree.class);
assertEquals("annotated with @ScannableTwo", filter.toString());
}
public void testCompositePackageScanFilter() {
PackageScanFilter one = new AnnotatedWithPackageScanFilter(org.apache.camel.spring.scan.ScannableOne.class);
PackageScanFilter two = new AssignableToPackageScanFilter(ScanTargetOne.class);
Set<PackageScanFilter> filters = CollectionHelper.createSetContaining(one, two);
CompositePackageScanFilter filter = new CompositePackageScanFilter(filters);
validateFilter(filter, ScanTargetOne.class);
validateFilter(filter, ScanTargetTwo.class);