title: How to clean database tables after each integration test when using Spring Boot and Liquibase?
body: <p>I have a side project were I'm using Spring Boot, Liquibase and Postgres.</p>
  <p>I have the following sequence of tests:</p>
  <pre class="lang-java prettyprint-override"><code>test1();
  test2();
  test3();
  test4();
  </code></pre>
  <p>In those four tests I'm creating the same entity. As I'm not removing the records from the table after each test case, I'm getting the following exception: <code>org.springframework.dao.DataIntegrityViolationException</code></p>
  <p>I want to solve this problem with the following constraints:</p>
  <ol>
  <li>I don't want to use the <code>@repository</code> to clean the database.</li>
  <li>I don't want to kill the database and create it on each test case because I'm using TestContainers and doing that would increase the time it takes to complete the tests.</li>
  </ol>
  <p>In short: How can I remove the records from one or more tables after each test case without 1) using the <code>@repository</code> of each entity and 2) killing and starting the database container on each test case?</p>