Class ClassFinder

  • Direct Known Subclasses:
    ClassesSerializableTest

    public abstract class ClassFinder
    extends Object
    Superclass for testing classes which need to scan project's classpath.
    Author:
    Vaadin Ltd
    • Constructor Detail

      • ClassFinder

        public ClassFinder()
    • Method Detail

      • isTestClassPath

        protected boolean isTestClassPath​(String classPath)
      • isFunctionalType

        protected static boolean isFunctionalType​(Type type)
      • getRawClasspathEntries

        protected static List<String> getRawClasspathEntries()
        Lists all class path entries by splitting the class path string.

        Adapted from ClassPathExplorer.getRawClasspathEntries(), but without filtering.

        Returns:
        List of class path segment strings
      • getJarPattern

        protected Pattern getJarPattern()
        JARs that will be scanned for classes to test, in addition to classpath directories.
        Returns:
        the compiled pattern
      • getBasePackages

        protected Stream<String> getBasePackages()
      • isTestClass

        protected boolean isTestClass​(Class<?> cls)