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 booleanequals(Object o)static DirectorySourcefrom(File directory)Create a newDirectorySourceusing the supplied directory.FilegetFile()Get the source directory.URIgetUri()inthashCode()StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.junit.platform.engine.support.descriptor.UriSource
-
-
-
-
Method Detail
-
from
public static DirectorySource from(File directory)
Create a newDirectorySourceusing 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:
getFilein interfaceFileSystemSource- Returns:
- the source directory; never
null
-
-