|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Target(value=METHOD) public @interface RequiresConfiguration
Annotation that marks methods belonging into a certain context (those methods marked with Test
).
For example, you can have multiple configuration (see {$link org.ops4j.pax.exam.junit.Configuration}) but they belong
to different contexts. So you annate both of them with this annotation. Then you annote the actual test method with
exactly the same annotation.
This approach makes configuration+test method coupling independent from nameing of methods (different from AppliesTo Annotation).
Optional Element Summary | |
---|---|
java.lang.String[] |
value
A string that is matched against any other context marker. |
public abstract java.lang.String[] value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |