@Inherited
@Documented
@Retention(value=RUNTIME)
@Target(value={FIELD,PARAMETER})
public @interface ArquillianResource
Arquillian can expose these objects to the test case using the @ArquillianResource injection annotation.
Usage Example of Field injection:
@ArquillianResource
private InitialContext context;
@Test
public void shouldBeAbleToGetContext() {
context.lookup("");
}
Usage Example of Argument injection:
@Test
public void shouldBeAbleToGetContext(@ArquillianResource InitialContext context) {
context.lookup("");
}
Modifier and Type | Optional Element and Description |
---|---|
java.lang.Class<?> |
value
Defines the resource target for this injection.
|