java.lang.Object | |
↳ | com.atlassian.jira.test.util.lic.LicenseReader |
Simply utility class to read License
objects used in tests.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Try and read the passed resource as a License.
| |||||||||||
Try and read the passed resource as an encoded license string.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object |
Try and read the passed resource as a License. The search for the resource tries two methods:
getResourceAsStream(String)
on base
.getResourceAsStream(String)
on base.getClassLoader()
.A runtime exception will be thrown if the license cannot be found.
resource | the resource to read. |
---|---|
base | the class that will be used to resolve the resource. |
RuntimeException | if the license cannot be found. |
---|
Try and read the passed resource as an encoded license string. The search for the resource trys two methods:
getResourceAsStream(String)
on base
.getResourceAsStream(String)
on base.getClassLoader()
.A runtime exception will be thrown if the license cannot be found.
resource | the resource to read. |
---|---|
base | the class that will be used to resolve the resource. |
RuntimeException | if the license cannot be found. |
---|