-
Notifications
You must be signed in to change notification settings - Fork 4
@ExpectMaxInsert
Jean Bisutti edited this page Nov 18, 2020
·
2 revisions
With this annotation, the test will fail if the number of INSERT statements is greater than expected.
See also the ExpectInsert annotation.
Name | Type | Meaning | Default value |
---|---|---|---|
value | int | Maximum number of inserts | 0 |
@ExpectMaxInsert(1)
@Test
public void execute_one_insert() {
//...
}
π Β 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