edu.cmu.cs.crystal.annotations
Annotation Type FailingTest


@Retention(value=RUNTIME)
public @interface FailingTest

If this interface is contained anywhere inside of a CompilationUnit, that compilation unit will be analyzed as a test, and the analysis of that file should produce errors or warnings. If a value is provided, and that value is greater than 0, the testing framework will assert that exactly that number of errors were reported. Otherwise, there must be at least one error.

Author:
Nels E. Beckman

Optional Element Summary
 java.lang.String analysis
           
 int value
          The number of errors expected.
 

value

public abstract int value
The number of errors expected. A value less than or equal to zero indicates that any number of repoted errors is satisfactory, as long as that number is greater than 0.

Default:
0

analysis

public abstract java.lang.String analysis
Default:
""