Skip to content

@ExpectSelect

Jean Bisutti edited this page Nov 18, 2020 Β· 4 revisions

Verifies the number of SELECT statements.

See also the ExpectMaxSelect annotation.

πŸ”§ Elements

Name Type Meaning Default value
value int Number of select statements 1

πŸ”Ž Example

    @ExpectSelect(1)
    @Test
    public void should_retrieve_all_cars() {	
     //...
    }

Annotations

πŸ‘‰  Core

πŸ‘‰  JVM

πŸ‘‰  SQL

πŸ‘‰  Scopes

πŸ‘‰  Create an annotation

Supported frameworks

πŸ‘‰  JUnit 4

πŸ‘‰  JUnit 5

πŸ‘‰  TestNG

πŸ‘‰  Spring

How to

πŸ‘‰  Detect and fix N+1 SELECT

Project examples

πŸ‘‰  Maven performance

πŸ‘‰  Spring Boot - JUnit 4

πŸ‘‰  Spring Boot - JUnit 5

πŸ‘‰  Micronaut Data - JUnit 5

πŸ‘‰  Micronaut - Spring - JUnit 5

πŸ‘‰  Quarkus - JUnit 5

Miscellaneous

πŸ‘‰  FAQ

πŸ‘‰  QuickPerf code

Clone this wiki locally