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 FileSystemSourceDirectory 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(java.lang.Object o)static DirectorySourcefrom(java.io.File directory)Create a newDirectorySourceusing the supplied directory.java.io.FilegetFile()Get the source directory.java.net.URIgetUri()Get theURIfor the source directory.inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
from
public static DirectorySource from(java.io.File directory)
Create a newDirectorySourceusing the supplied directory.- Parameters:
directory- the source directory; must not benull
-
getUri
public final java.net.URI getUri()
Get theURIfor the source directory.
-
getFile
public final java.io.File getFile()
Get the source directory.- Specified by:
getFilein interfaceFileSystemSource- Returns:
- the source directory; never
null
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-