powermock.examples.bypassencapsulation.nontest
Annotation Type Injectable


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

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.