@Target({FIELD,PARAMETER})
@Retention(RUNTIME)
@Documented
@API(status=EXPERIMENTAL,
since="0.1")
public @interface GivenTextResource
Annotates field or test parameter that must be injected with content of text resource file with path 'from'.
-
Optional Element Summary
Optional Elements
| Modifier and Type |
Optional Element |
Description |
java.lang.String |
charset |
|
java.lang.String |
from |
|
java.lang.String |
value |
|
-
Element Details
-
java.lang.String value
- Returns:
- Alias for
from().
- Default:
- ""
-
java.lang.String from
- Returns:
- Absolute path to requested text resource file.
- Default:
- ""
-
java.lang.String charset
- Returns:
- Encoding charset of resource file.
- Default:
- "UTF-8"