-
Notifications
You must be signed in to change notification settings - Fork 4
@ExpectMaxJdbcQueryExecution
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.
Name | Type | Meaning | Default value |
---|---|---|---|
value | int | Max JDBC query execution | 0 |
@ExpectMaxJdbcQueryExecution(2)
@Test
public void execute_2_inserts() {
//...
}
π Β Core
π Β JVM
π Β SQL
π Β Scopes
π Β Create an annotation
π Β JUnit 4
π Β JUnit 5
π Β TestNG
π Β Spring
π Β Detect and fix N+1 SELECT
π Β Maven performance
π Β Spring Boot - JUnit 4
π Β Spring Boot - JUnit 5
π Β Micronaut Data - JUnit 5
π Β Micronaut - Spring - JUnit 5
π Β Quarkus - JUnit 5
π Β FAQ
π Β QuickPerf code