demo.org.powermock.examples.tutorial.common.annotation
Annotation Type Inject


@Target(value={FIELD,CONSTRUCTOR})
@Retention(value=RUNTIME)
@Documented
public @interface Inject

A custom marker annotation to demonstrate how to use PowerMock to set field dependencies. In a real application these dependencies are set by an external dependency injection framework using reflection.



Copyright © 2007-2012. All Rights Reserved.