org.junit.platform.engine.TestSource
with an optional position.
org.junit.platform.engine.discovery.ClasspathResourceSelector
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| private final String | |
| private final @Nullable FilePosition | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| 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 ClasspathResourceSource | |
| public static ClasspathResourceSource | from(String
the name of the classpath resource; never
classpathResourceName, @Nullable FilePosition null or blankthe position in the classpath resource; may be filePosition)nullCreate a new |
| public static ClasspathResourceSource | |
| public String | |
| public Optional | |
| public int | |
| public String |
| CLASSPATH_SCHEME | back to summary |
|---|---|
| public static final String CLASSPATH_SCHEME
| |
| classpathResourceName | back to summary |
|---|---|
| private final String classpathResourceName | |
| filePosition | back to summary |
|---|---|
| private final @Nullable FilePosition filePosition | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID
| |
| ClasspathResourceSource | back to summary |
|---|---|
| private ClasspathResourceSource(String classpathResourceName) | |
| ClasspathResourceSource | back to summary |
|---|---|
| private ClasspathResourceSource(String classpathResourceName, @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 ClasspathResourceSource from(String classpathResourceName) Create a new The name of a classpath resource must follow the semantics
for resource paths as defined in If the supplied classpath resource name is prefixed with a slash
(
| |
| from | back to summary |
|---|---|
| public static ClasspathResourceSource from(String classpathResourceName, @Nullable FilePosition filePosition) Create a new The name of a classpath resource must follow the semantics
for resource paths as defined in If the supplied classpath resource name is prefixed with a slash
(
| |
| from | back to summary |
|---|---|
| public static ClasspathResourceSource from(URI uri) Create a new The
| |
| getClasspathResourceName | back to summary |
|---|---|
| public String getClasspathResourceName() Get the name of the source classpath resource. The name of a classpath resource follows the semantics for
resource paths as defined in | |
| getPosition | back to summary |
|---|---|
| public Optional Get the | |
| 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-
| |