org.junit.platform.engine.TestSource with an optional
position.
org.junit.platform.engine.discovery.FileSelector
| Modifier and Type | Field and Description |
|---|---|
| private final File | |
| private final @Nullable FilePosition | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| private | |
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object o)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public static FileSource | |
| public static FileSource | from(File
the source file; must not be file, @Nullable FilePosition nullthe position in the source file; may be filePosition)nullCreate a new |
| public File | Returns: the source file; nevernullImplements org. Get the source file. |
| public Optional | |
| public URI | Returns: the sourceURI; never nullImplements org. |
| public int | |
| public String | |
| public FileSource | withPosition(@Nullable FilePosition
the position in the source file; may be filePosition)nullReturns a |
| file | back to summary |
|---|---|
| private final File file | |
| filePosition | back to summary |
|---|---|
| private final @Nullable FilePosition filePosition | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID
| |
| FileSource | back to summary |
|---|---|
| private FileSource(File file) | |
| FileSource | back to summary |
|---|---|
| private FileSource(File file, @Nullable FilePosition filePosition) | |
| FileSource | back to summary |
|---|---|
| private FileSource(FileSource fileSource, @Nullable FilePosition filePosition) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| from | back to summary |
|---|---|
| public static FileSource from(File file) Create a new
| |
| from | back to summary |
|---|---|
| public static FileSource from(File file, @Nullable FilePosition filePosition) Create a new
| |
| getFile | back to summary |
|---|---|
| public File getFile() Implements org. Get the source file. | |
| getPosition | back to summary |
|---|---|
| public Optional Get the | |
| getUri | back to summary |
|---|---|
| public URI getUri() Implements org. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| withPosition | back to summary |
|---|---|
| public FileSource withPosition(@Nullable FilePosition filePosition) Returns a If the supplied Calling this method rather than creating a new
| |