IDEMPIERE-5063 Improve Unit Tests (#1315)

* IDEMPIERE-5063 Improve Unit Tests

- revert -> Close DB connections after each unit test class
- implement a different approach to close the transactions on tearDown even when not active

* Remove Adempiere.stop as suggested by Heng Sin
This commit is contained in:
Carlos Ruiz 2022-05-06 11:56:10 +02:00 committed by GitHub
parent d2e52bbb86
commit b6191ecee3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -33,7 +33,6 @@ import org.compiere.Adempiere;
import org.compiere.model.MAcctSchema;
import org.compiere.model.MClientInfo;
import org.compiere.model.MRole;
import org.compiere.util.DB;
import org.compiere.util.Env;
import org.compiere.util.Language;
import org.compiere.util.Trx;
@ -226,7 +225,5 @@ public abstract class AbstractTestCase {
* shutdown for class
*/
static void shutdown() {
Adempiere.stop();
DB.getDatabase().close();
}
}