hibernate-orm
hibernate-orm copied to clipboard
HHH-14614 - Better support for JUnit 5 on-failure handling
HHH-14614 - Better support for JUnit 5 on-failure handling
- this commit is just the "infrastructure" piece.
- still need to come back and use it.
The benefit is this allows us to perform some action when tests fail. E.g., atm we are forced to create and drop test data for each test method - @BeforeEach and @AfterEach. This support allows us to use @BeforeAll and @AfterAll. Previously this would be a potential problem when tests fail. This support though let's us hook into the "failure process" to rebuild the SessionFactory when we have these failures