Skip to content

@DisplaySql

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

This annotation displays on the console the SQL statements produced during the test execution.

Compared to DisplaySqlOfTestMethodBody annotation, DisplaySql also displays SQL statements before (JUnit 4: @Before, @BeforeClass) and after (JUnit 4: @After, @AfterClass) the execution of the test method body.

⚠We don't recommend committing this annotation. Indeed, the SQL statements would pollute the logs and may slow down the continuous integration build.

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