@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("");
}
public abstract Class<?> value
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.