Module org.junit.platform.engine
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:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static PackageSource
Create a newPackageSource
using the supplied JavaPackage
.static PackageSource
Create a newPackageSource
using the suppliedpackageName
.final String
Get the package name of this test source.int
hashCode()
toString()
-
Method Details
-
from
Create a newPackageSource
using the supplied JavaPackage
.- Parameters:
javaPackage
- the Java package; must not benull
-
from
Create a newPackageSource
using the suppliedpackageName
.- Parameters:
packageName
- the package name; must not benull
or blank
-
getPackageName
Get the package name of this test source. -
equals
-
hashCode
public int hashCode() -
toString
-