@Test public void testScanner() { final ScanResult scanResult = new ClassGraph().enableAllInfo().scan(); final List<String> allClassNames = scanResult.getAllClasses().getNames(); final List<String> testClassNames = Input.filterClassNames(allClassNames, Arrays.asList("cz.habarta.typescript.generator.**Test")); Assert.assertTrue("Typescript-generator must have at least 20 tests :-)", testClassNames.size() > 20); }
static List<String> filterClassNames(List<String> classNames, List<String> globs) { final List<Pattern> regexps = Utils.globsToRegexps(globs); final List<String> result = new ArrayList<>(); for (String className : classNames) { if (Utils.classNameMatches(className, regexps)) { result.add(className); } } return result; }
Input { static List<String> filterClassNames(List<String> classNames, List<String> globs) { final List<Pattern> regexps = Utils.globsToRegexps(globs); final List<String> result = new ArrayList<>(); for (String className : classNames) { if (Utils.classNameMatches(className, regexps)) { result.add(className); } } return result; } }
Input { static List<String> filterClassNames(List<String> classNames, List<String> globs) { final List<Pattern> regexps = Utils.globsToRegexps(globs); final List<String> result = new ArrayList<>(); for (String className : classNames) { if (Utils.classNameMatches(className, regexps)) { result.add(className); } } return result; } private  Input(List<SourceType<Type>> sourceTypes); }
Input { static List<String> filterClassNames(List<String> classNames, List<String> globs) { final List<Pattern> regexps = Utils.globsToRegexps(globs); final List<String> result = new ArrayList<>(); for (String className : classNames) { if (Utils.classNameMatches(className, regexps)) { result.add(className); } } return result; } private  Input(List<SourceType<Type>> sourceTypes); List<SourceType<Type>> getSourceTypes(); static Input from(Type... types); @Deprecated static Input fromClassNamesAndJaxrsApplication(List<String> classNames, List<String> classNamePatterns, String jaxrsApplicationClassName,
            boolean automaticJaxrsApplication, Predicate<String> isClassNameExcluded, URLClassLoader classLoader, boolean debug); @Deprecated static Input fromClassNamesAndJaxrsApplication(List<String> classNames,
            List<String> classNamePatterns, List<String> classesWithAnnotations,
            List<String> classesImplementingInterfaces, List<String> classesExtendingClasses,
            String jaxrsApplicationClassName,
            boolean automaticJaxrsApplication, Predicate<String> isClassNameExcluded,
            URLClassLoader classLoader, boolean debug); static Input from(Parameters parameters); }
Input { static List<String> filterClassNames(List<String> classNames, List<String> globs) { final List<Pattern> regexps = Utils.globsToRegexps(globs); final List<String> result = new ArrayList<>(); for (String className : classNames) { if (Utils.classNameMatches(className, regexps)) { result.add(className); } } return result; } private  Input(List<SourceType<Type>> sourceTypes); List<SourceType<Type>> getSourceTypes(); static Input from(Type... types); @Deprecated static Input fromClassNamesAndJaxrsApplication(List<String> classNames, List<String> classNamePatterns, String jaxrsApplicationClassName,
            boolean automaticJaxrsApplication, Predicate<String> isClassNameExcluded, URLClassLoader classLoader, boolean debug); @Deprecated static Input fromClassNamesAndJaxrsApplication(List<String> classNames,
            List<String> classNamePatterns, List<String> classesWithAnnotations,
            List<String> classesImplementingInterfaces, List<String> classesExtendingClasses,
            String jaxrsApplicationClassName,
            boolean automaticJaxrsApplication, Predicate<String> isClassNameExcluded,
            URLClassLoader classLoader, boolean debug); static Input from(Parameters parameters);  }