title: @Transactional annotation in Spring Test
body: <p>I am reading Spring docs about <code>Spring test</code> in: <a href="https://docs.spring.io/spring-boot/docs/current/reference/html/spring-boot-features.html#boot-features-testing" rel="nofollow noreferrer">here</a></p>
  <p>And about using @Transactinoal on tests it says:</p>
  <blockquote>
  <p>If your test is @Transactional, it rolls back the transaction at the end of each test method by default. However, as using this arrangement with either RANDOM_PORT or DEFINED_PORT implicitly provides a real servlet environment, the HTTP client and server run in separate threads and, thus, in separate transactions. Any transaction initiated on the server does not roll back in this case.</p>
  </blockquote>
  <p>I do not understand what does it exactly means by <strong>Any transaction initiated on the server does not roll back in this case.</strong></p>
  <p>Any help is appreciated.</p>