Class Resource
java.lang.Object
org.jenkinsci.test.acceptance.junit.Resource
Wraps a resource found by
Class.getResource(String)
.- Author:
- Kohsuke Kawaguchi
-
Field Details
-
url
-
-
Constructor Details
-
Resource
-
-
Method Details
-
getName
Gets just the file name portion without any paths, like "foo.txt" -
asInputStream
-
asReader
-
asText
-
asByteArray
- Throws:
IOException
-
asFile
-