When running this class, all tests in the class pass but the whole class fail because PostgresExtension try to run SQL query (in aftereach method) but all postgres connections have been closed by afterall method.
How
When using JamesServerExtension.Lifecycle.PER_ENCLOSING_CLASS, the afterall method of PostgresExtension is run before the after each method. Update JamesServerExtension to fix the order of running
Why
When running this class, all tests in the class pass but the whole class fail because PostgresExtension try to run SQL query (in aftereach method) but all postgres connections have been closed by afterall method.
How
When using JamesServerExtension.Lifecycle.PER_ENCLOSING_CLASS, the afterall method of PostgresExtension is run before the after each method. Update JamesServerExtension to fix the order of running