|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Documented @Target(value=METHOD) @Retention(value=RUNTIME) @Inherited public @interface Test
Used to annotate a test case method in a test fixture class. This indicates to the framework that the method should
be executed during test execution. A test case method should take no arguments.
setup
, the test case results in
failure (setup)
.torn down
, regardless of its success or failure during execution,
the test case results in failure (tear down)
.expecting
, the test case
results in failure
expecting
, the test case results
in success
expecting
, the test case
results in failure
.ignored (cannot invoke)
.annotated that way
, the test case
results in ignored (annotated)
.
Optional Element Summary | |
---|---|
String |
description
Returns a description for the test case method, which is typically used in reporting. |
String |
value
Returns a name for the test case method, which is typically used in reporting. |
public abstract String value
public abstract String description
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |