Class DirectorySource
- java.lang.Object
-
- org.junit.platform.engine.support.descriptor.DirectorySource
-
- All Implemented Interfaces:
java.io.Serializable
,FileSystemSource
,UriSource
,TestSource
@API(status=STABLE, since="1.0") public class DirectorySource extends java.lang.Object implements FileSystemSource
Directory basedTestSource
.- Since:
- 1.0
- See Also:
DirectorySelector
, Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
static DirectorySource
from(java.io.File directory)
Create a newDirectorySource
using the supplied directory.java.io.File
getFile()
Get the source directory.java.net.URI
getUri()
Get theURI
for the source directory.int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
from
public static DirectorySource from(java.io.File directory)
Create a newDirectorySource
using the supplied directory.- Parameters:
directory
- the source directory; must not benull
-
getUri
public final java.net.URI getUri()
Get theURI
for the source directory.
-
getFile
public final java.io.File getFile()
Get the source directory.- Specified by:
getFile
in interfaceFileSystemSource
- Returns:
- the source directory; never
null
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-