You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jean Bisutti edited this page Nov 18, 2020
·
4 revisions
This annotation displays on the console the SQL statements produced during the execution of the test method body.
Compared to DisplaySql annotation, DisplaySqlOfTestMethodBody does not display 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.