@ExpectMaxJdbcQueryExecution - quick-perf/doc GitHub Wiki
The ExpectMaxJdbcQueryExecution annotation verifies the maximum number of JDBC query executions (executeQuery, executeUpdate, execute, executeLargeUpdate, executeBatch, executeLargeBatch). See datasource-proxy user guide about JDBC query executions.
Each JDBC execution triggers one or several JDBC roundtrips. For example, if a SELECT statement returns a row number greater than JDBC fetch size, the retrieval of all rows will need several JDBC roundtrips.
See also the ExpectJdbcQueryExecution annotation.
:wrench: Elements
Name | Type | Meaning | Default value |
---|---|---|---|
value | int | Max JDBC query execution | 0 |
:mag_right: Example
@ExpectMaxJdbcQueryExecution(2)
@Test
public void execute_2_inserts() {
//...
}