Class PackageSource

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      static PackageSource from​(java.lang.Package javaPackage)
      Create a new PackageSource using the supplied Java Package.
      static PackageSource from​(java.lang.String packageName)
      Create a new PackageSource using the supplied packageName.
      java.lang.String getPackageName​()
      Get the package name of this test source.
      int hashCode​()  
      java.lang.String toString​()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • from

        public static PackageSource from​(java.lang.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​(java.lang.String packageName)
        Create a new PackageSource using the supplied packageName.
        Parameters:
        packageName - the package name; must not be null or blank
      • getPackageName

        public final java.lang.String getPackageName​()
        Get the package name of this test source.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode​()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString​()
        Overrides:
        toString in class java.lang.Object