Class PackageSource
java.lang.Object
org.junit.platform.engine.support.descriptor.PackageSource
- All Implemented Interfaces:
Serializable, TestSource
@API(status=STABLE,
since="1.0")
public final class PackageSource
extends Object
implements TestSource
Package based
TestSource.
This class stores the package name because Package does not
implement Serializable.
- Since:
- 1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic PackageSourceCreate a newPackageSourceusing the supplied JavaPackage.static PackageSourceCreate a newPackageSourceusing the suppliedpackageName.Get the package name of this test source.inthashCode()toString()
-
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
-