Class PackageSource
java.lang.Object
org.junit.platform.engine.support.descriptor.PackageSource
- All Implemented Interfaces:
Serializable, TestSource
Package based
TestSource.
This class stores the package name because Package does not
implement Serializable.
- Since:
- 1.0
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePackageSource(Package javaPackage) privatePackageSource(String packageName) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic PackageSourceCreate a newPackageSourceusing the supplied JavaPackage.static PackageSourceCreate a newPackageSourceusing the suppliedpackageName.final StringGet the package name of this test source.inthashCode()toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
packageName
-
-
Constructor Details
-
PackageSource
-
PackageSource
-
-
Method Details
-
from
Create a newPackageSourceusing the supplied JavaPackage.- Parameters:
javaPackage- the Java package; must not benull
-
from
Create a newPackageSourceusing the suppliedpackageName.- Parameters:
packageName- the package name; must not benullor blank
-
getPackageName
Get the package name of this test source. -
equals
-
hashCode
-
toString
-