public void testExcludePatterns() {
addExcludePatterns("*");
validateMatchingSetContains();
filter = new PatternBasedPackageScanFilter();
addExcludePatterns("java*");
validateMatchingSetContains();
filter = new PatternBasedPackageScanFilter();
addExcludePatterns("java.io.*");
validateMatchingSetContains(List.class, ArrayList.class, LinkedList.class, JarFile.class);
filter = new PatternBasedPackageScanFilter();
addExcludePatterns("java.util.**");
validateMatchingSetContains(File.class, FileInputStream.class, RandomAccessFile.class);
filter = new PatternBasedPackageScanFilter();
addExcludePatterns("java.io.*", "java.util.*");
validateMatchingSetContains();
filter = new PatternBasedPackageScanFilter();
addExcludePatterns("java.io.File");
validateMatchingSetContains(List.class, ArrayList.class, LinkedList.class, JarFile.class, FileInputStream.class, RandomAccessFile.class);
filter = new PatternBasedPackageScanFilter();
addExcludePatterns("java.io.File*");
validateMatchingSetContains(List.class, ArrayList.class, LinkedList.class, JarFile.class, RandomAccessFile.class);
filter = new PatternBasedPackageScanFilter();
addExcludePatterns("java.io.*File*");
validateMatchingSetContains(List.class, ArrayList.class, LinkedList.class, JarFile.class);
filter = new PatternBasedPackageScanFilter();
addExcludePatterns("java.**.*File*");
validateMatchingSetContains(List.class, ArrayList.class, LinkedList.class);
filter = new PatternBasedPackageScanFilter();
addExcludePatterns("java.util.*List");
validateMatchingSetContains(File.class, FileInputStream.class, RandomAccessFile.class, JarFile.class);
filter = new PatternBasedPackageScanFilter();
addExcludePatterns("java.lang", "java.lang.*");
validateMatchingSetContains(allClasses);
filter = new PatternBasedPackageScanFilter();
addExcludePatterns("java.lang", "java.lang.*");
validateMatchingSetContains(allClasses);
}