public void testFindByAnnotationWithoutExtraFilters() { Set<Class<?>> scanned = resolver.findAnnotated(org.apache.camel.spring.scan.ScannableOne.class, scanPackage); validateMatchingSetContains(scanned, ScanTargetOne.class, ScanTargetTwo.class); scanned = resolver.findAnnotated(org.apache.camel.spring.scan.ScannableTwo.class, scanPackage); validateMatchingSetContains(scanned, ScanTargetThree.class); }
public void testFindByAnnotationWithExcludePackageFilter() { filter.addExcludePattern(scanPackage + ".b.*"); filter.addExcludePattern(scanPackage + ".c.*"); resolver.addFilter(filter); Set<Class<?>> scanned = resolver.findAnnotated(ScannableOne.class, scanPackage); validateMatchingSetContains(scanned, ScanTargetOne.class); scanned = resolver.findAnnotated(org.apache.camel.spring.scan.ScannableTwo.class, scanPackage); validateMatchingSetContains(scanned); }
public void testFindByAnnotationsWithIncludePackageFilter() { filter.addIncludePattern(scanPackage + ".b.*"); filter.addIncludePattern(scanPackage + ".c.*"); resolver.addFilter(filter); Set<Class<?>> scanned = resolver.findAnnotated(annotations, "org.apache.camel.spring.scan"); validateMatchingSetContains(scanned, ScanTargetTwo.class, ScanTargetThree.class); }
public void testFindByAnnotationsWithoutExtraFilters() { Set<Class<?>> scanned = resolver.findAnnotated(annotations, scanPackage); validateMatchingSetContains( scanned, ScanTargetOne.class, ScanTargetTwo.class, ScanTargetThree.class); }