Class DirectorySource
- java.lang.Object
-
- org.junit.platform.engine.support.descriptor.DirectorySource
-
- All Implemented Interfaces:
Serializable
,FileSystemSource
,UriSource
,TestSource
@API(status=STABLE, since="1.0") public class DirectorySource extends 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(Object o)
static DirectorySource
from(File directory)
Create a newDirectorySource
using the supplied directory.File
getFile()
Get the source directory.URI
getUri()
int
hashCode()
String
toString()
-
-
-
Method Detail
-
from
public static DirectorySource from(File directory)
Create a newDirectorySource
using the supplied directory.- Parameters:
directory
- the source directory; must not benull
-
getUri
public final URI getUri()
-
getFile
public final File getFile()
Get the source directory.- Specified by:
getFile
in interfaceFileSystemSource
- Returns:
- the source directory; never
null
-
-