Resource represents a resource on the classpath.
org.junit.platform.commons.support.ResourceSupport
| Modifier and Type | Method and Description |
|---|---|
| public default InputStream | Returns: an input stream for this resource; nevernullGet an |
| public String | |
| public URI | |
| public static Resource |
| getInputStream | back to summary |
|---|---|
| public default InputStream getInputStream() throws IOException Get an The default implementation delegates to
| |
| getName | back to summary |
|---|---|
| public String getName() Get the name of this resource. The resource name is a
| |
| getUri | back to summary |
|---|---|
| public URI getUri() Get the URI of this resource.
| |
| of | back to summary |
|---|---|
| public static Resource of(String name, URI uri) Create a new | |