Annotation Type ResetData

public @interface ResetData

Annotate your test class or test method with this annotation if you want the data on the tested JIRA instance to be reset to blank state before given test class/test method executes.

If a class is annotated with this annotation, the restore will happen only once per the whole suite represented by the class. If a test method is annotated - the restore will happen before that particular test

NOTE: This annotation cannot be mixed with other @Restore annotations either on method, or class level. That means that for given test there must only ever be one @Reset or @Restore-style annotation, or an error will be raised. This is to encourage developers to explicitly choose between the restore-once, or restore-for-each-test approach for each test suite.


Copyright © 2002-2013 Atlassian. All Rights Reserved.