Skip to content
Snippets Groups Projects

Fix tests by disabling DirtiesContext with Transactional

  1. May 04, 2020
    • Chris Lemaire's avatar
      Fix tests by disabling DirtiesContext with Transactional · ec239236
      Chris Lemaire authored
      The @Transactional annotations at the top of every test suite will
      guarantee that the tests including their @BeforeEach annotations are
      transactional and that changes will be rolled back when the test
      finishes.
      
      DirtiesContext is used for marking the full application context as
      dirty, this restarts Spring at the end or start of every test or test
      suite.
      ec239236
Loading