Package org.quickperf.sql.annotation
Annotation Type DisplaySql
-
@Retention(RUNTIME) @Target({METHOD,TYPE}) public @interface DisplaySql
This annotation displays on the console the SQL statements produced during the test execution.Compared to
DisplaySqlOfTestMethodBody
, this annotation 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.
Example:
@DisplaySql public void sql_batch_execution() {
..
}