@Target(value=METHOD)
@Documented
public @interface Teardown
Benchmark
test method. Teardown methods are automatically executed by
the benchmarking framework after their matching test methods. Teardown
measurements are excluded from final benchmark reports.
For example, you might annotate a Benchmark
method named
testInserts
with @Teardown("endTestInserts")
to ensure
endTestInserts
is always executed after
testInserts
.
Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
value
The name of the method to execute after the annotated test method.
|