@Documented @Retention(value=RUNTIME) public @interface IgnoreTest
E.g. a unit test was written to test all getters/setters in an object. However, there are setters that are intentionally defined different. This annotation could inform the unit-test that these methods intentionally do not fulfill the getter/setter requirement and hence shall not be considered in that unit test.
The annotation can hold strings that identify certain types within your unit test. This allows to selectively ignore specific types of tests.
Examples:@IgnoreTest - will ignore all tests.@IgnoreTest("getter") - will ignore only those tests that care about getters.@IgnoreTest({"getter", "setter"}) - will ignore only those tests that care about getters and setters.
Please notice that ignoring tests must be implemented in your unit tests. The annotation can be
checked through IgnoreChecks.ignoreTest(java.lang.reflect.AnnotatedElement, String...).
public abstract String[] value
Copyright © 2014. All rights reserved.