Class PackageSource

    • Method Detail

      • from

        public static PackageSource from​(Package javaPackage)
        Create a new PackageSource using the supplied Java Package.
        Parameters:
        javaPackage - the Java package; must not be null
      • from

        public static PackageSource from​(String packageName)
        Create a new PackageSource using the supplied packageName.
        Parameters:
        packageName - the package name; must not be null or blank
      • getPackageName

        public final String getPackageName()
        Get the package name of this test source.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object