IDEMPIERE-5683 Fix broken test (#1826)
* IDEMPIERE-5683 Fix broken test * - Fix also MTest test leaving records in the database * Revert "- Fix also MTest test leaving records in the database" This reverts commit 39005e5e87e96ee3f4433ebb3567add8d1b0a62c.
This commit is contained in:
parent
8bb0d55c90
commit
9372743735
|
@ -242,6 +242,7 @@ public class PaySelectFormTest extends AbstractTestCase {
|
|||
hdr.deleteEx(true);
|
||||
}
|
||||
DB.executeUpdateEx("UPDATE C_Invoice SET C_Payment_ID=NULL WHERE C_Payment_ID=?", new Object[] {payment.get_ID()}, null);
|
||||
DB.executeUpdateEx("DELETE FROM Fact_Acct WHERE AD_Table_ID=? AND Record_ID=?", new Object[] {MPayment.Table_ID, payment.get_ID()}, null);
|
||||
payment.deleteEx(true);
|
||||
}
|
||||
}
|
||||
|
@ -264,6 +265,7 @@ public class PaySelectFormTest extends AbstractTestCase {
|
|||
MAllocationHdr hdr = new MAllocationHdr(Env.getCtx(), i, null);
|
||||
hdr.deleteEx(true);
|
||||
}
|
||||
DB.executeUpdateEx("DELETE FROM Fact_Acct WHERE AD_Table_ID=? AND Record_ID=?", new Object[] {MInvoice.Table_ID, invoice.get_ID()}, null);
|
||||
invoice.deleteEx(true);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue