@Retention(value=RUNTIME)
@Target(value={TYPE,METHOD})
public @interface VerifiesIssue
Example:
public class AdditionTest {
@Test
@VerifiesIssue( "JIRA-0943" )
public void shouldPreventNumericOverflow() throws Exception {
...
}
}
| Modifier and Type | Required Element and Description |
|---|---|
java.lang.String[] |
value
Defines one or more issue IDs (such as JIRA codes) that pertain to the respective test
(or tests, if the annotation is attached to a test class).
|
| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String |
comment
Provides an optional commentary to the relation between the listed issues and the test.
|