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