IDEMPIERE-5387 Unit Test: always include process info summary as document workflow assertion failure message (#1443)

This commit is contained in:
hengsin 2022-08-15 18:28:01 +08:00 committed by GitHub
parent db2e59c163
commit bb8e1a45d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 91 additions and 91 deletions

View File

@ -85,7 +85,7 @@ public class GenericPaymentExportTest extends AbstractTestCase {
il.saveEx();
ProcessInfo pi = MWorkflow.runDocumentActionWorkflow(invoice, DocAction.ACTION_Complete);
assertFalse(pi.isError());
assertFalse(pi.isError(), pi.getSummary());
String paymentRule = MPaySelectionLine.PAYMENTRULE_Check;
MPaySelection ps = new MPaySelection(Env.getCtx(), 0, getTrxName());

View File

@ -107,7 +107,7 @@ public class MatchInvTest extends AbstractTestCase {
ProcessInfo info = MWorkflow.runDocumentActionWorkflow(order, DocAction.ACTION_Complete);
order.load(getTrxName());
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
assertEquals(DocAction.STATUS_Completed, order.getDocStatus());
MInOut receipt = new MInOut(order, DictionaryIDs.C_DocType.MM_RECEIPT.id, order.getDateOrdered()); // MM Receipt
@ -125,7 +125,7 @@ public class MatchInvTest extends AbstractTestCase {
info = MWorkflow.runDocumentActionWorkflow(receipt, DocAction.ACTION_Complete);
receipt.load(getTrxName());
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
assertEquals(DocAction.STATUS_Completed, receipt.getDocStatus());
if (!receipt.isPosted()) {
@ -153,7 +153,7 @@ public class MatchInvTest extends AbstractTestCase {
info = MWorkflow.runDocumentActionWorkflow(rma, DocAction.ACTION_Complete);
rma.load(getTrxName());
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
assertEquals(DocAction.STATUS_Completed, rma.getDocStatus());
MInOut delivery = new MInOut(Env.getCtx(), 0, getTrxName());
@ -202,7 +202,7 @@ public class MatchInvTest extends AbstractTestCase {
info = MWorkflow.runDocumentActionWorkflow(creditMemo, DocAction.ACTION_Complete);
creditMemo.load(getTrxName());
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
assertEquals(DocAction.STATUS_Completed, creditMemo.getDocStatus());
if (!creditMemo.isPosted()) {
@ -270,7 +270,7 @@ public class MatchInvTest extends AbstractTestCase {
ProcessInfo info = MWorkflow.runDocumentActionWorkflow(order, DocAction.ACTION_Complete);
order.load(getTrxName());
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
assertEquals(DocAction.STATUS_Completed, order.getDocStatus());
MInOut receipt = new MInOut(order, DictionaryIDs.C_DocType.MM_RECEIPT.id, order.getDateOrdered()); // MM Receipt
@ -288,7 +288,7 @@ public class MatchInvTest extends AbstractTestCase {
info = MWorkflow.runDocumentActionWorkflow(receipt, DocAction.ACTION_Complete);
receipt.load(getTrxName());
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
assertEquals(DocAction.STATUS_Completed, receipt.getDocStatus());
if (!receipt.isPosted()) {
@ -313,7 +313,7 @@ public class MatchInvTest extends AbstractTestCase {
info = MWorkflow.runDocumentActionWorkflow(invoice, DocAction.ACTION_Complete);
invoice.load(getTrxName());
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
assertEquals(DocAction.STATUS_Completed, invoice.getDocStatus());
if (!invoice.isPosted()) {
@ -445,7 +445,7 @@ public class MatchInvTest extends AbstractTestCase {
info = MWorkflow.runDocumentActionWorkflow(order, DocAction.ACTION_Complete);
order.load(getTrxName());
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
assertEquals(DocAction.STATUS_Completed, order.getDocStatus());
MInOut receipt = new MInOut(order, 122, order.getDateOrdered()); // MM Receipt
@ -463,7 +463,7 @@ public class MatchInvTest extends AbstractTestCase {
info = MWorkflow.runDocumentActionWorkflow(receipt, DocAction.ACTION_Complete);
receipt.load(getTrxName());
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
assertEquals(DocAction.STATUS_Completed, receipt.getDocStatus());
if (!receipt.isPosted()) {
@ -488,7 +488,7 @@ public class MatchInvTest extends AbstractTestCase {
info = MWorkflow.runDocumentActionWorkflow(invoice, DocAction.ACTION_Complete);
invoice.load(getTrxName());
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
assertEquals(DocAction.STATUS_Completed, invoice.getDocStatus());
if (!invoice.isPosted()) {
@ -563,7 +563,7 @@ public class MatchInvTest extends AbstractTestCase {
ProcessInfo info = MWorkflow.runDocumentActionWorkflow(order, DocAction.ACTION_Complete);
order.load(getTrxName());
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
assertEquals(DocAction.STATUS_Completed, order.getDocStatus());
MInvoice invoice = new MInvoice(Env.getCtx(), 0, getTrxName());
@ -587,7 +587,7 @@ public class MatchInvTest extends AbstractTestCase {
info = MWorkflow.runDocumentActionWorkflow(invoice, DocAction.ACTION_Complete);
invoice.load(getTrxName());
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
assertEquals(DocAction.STATUS_Completed, invoice.getDocStatus());
if (!invoice.isPosted()) {
@ -612,7 +612,7 @@ public class MatchInvTest extends AbstractTestCase {
info = MWorkflow.runDocumentActionWorkflow(receipt, DocAction.ACTION_Complete);
receipt.load(getTrxName());
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
assertEquals(DocAction.STATUS_Completed, receipt.getDocStatus());
if (!receipt.isPosted()) {
@ -678,7 +678,7 @@ public class MatchInvTest extends AbstractTestCase {
info = MWorkflow.runDocumentActionWorkflow(creditMemo, DocAction.ACTION_Complete);
creditMemo.load(getTrxName());
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
assertEquals(DocAction.STATUS_Completed, creditMemo.getDocStatus());
if (!creditMemo.isPosted()) {
@ -792,7 +792,7 @@ public class MatchInvTest extends AbstractTestCase {
ProcessInfo info = MWorkflow.runDocumentActionWorkflow(order, DocAction.ACTION_Complete);
order.load(getTrxName());
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
assertEquals(DocAction.STATUS_Completed, order.getDocStatus());
MInOut receipt = new MInOut(order, DictionaryIDs.C_DocType.MM_RECEIPT.id, order.getDateOrdered()); // MM Receipt
@ -810,7 +810,7 @@ public class MatchInvTest extends AbstractTestCase {
info = MWorkflow.runDocumentActionWorkflow(receipt, DocAction.ACTION_Complete);
receipt.load(getTrxName());
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
assertEquals(DocAction.STATUS_Completed, receipt.getDocStatus());
if (!receipt.isPosted()) {
@ -838,7 +838,7 @@ public class MatchInvTest extends AbstractTestCase {
info = MWorkflow.runDocumentActionWorkflow(invoice, DocAction.ACTION_Complete);
invoice.load(getTrxName());
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
assertEquals(DocAction.STATUS_Completed, invoice.getDocStatus());
if (!invoice.isPosted()) {
@ -941,7 +941,7 @@ public class MatchInvTest extends AbstractTestCase {
ProcessInfo info = MWorkflow.runDocumentActionWorkflow(order, DocAction.ACTION_Complete);
order.load(getTrxName());
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
assertEquals(DocAction.STATUS_Completed, order.getDocStatus());
MInOut receipt = new MInOut(order, DictionaryIDs.C_DocType.MM_RECEIPT.id, order.getDateOrdered()); // MM Receipt
@ -959,7 +959,7 @@ public class MatchInvTest extends AbstractTestCase {
info = MWorkflow.runDocumentActionWorkflow(receipt, DocAction.ACTION_Complete);
receipt.load(getTrxName());
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
assertEquals(DocAction.STATUS_Completed, receipt.getDocStatus());
if (!receipt.isPosted()) {
@ -984,7 +984,7 @@ public class MatchInvTest extends AbstractTestCase {
info = MWorkflow.runDocumentActionWorkflow(invoice, DocAction.ACTION_Complete);
invoice.load(getTrxName());
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
assertEquals(DocAction.STATUS_Completed, invoice.getDocStatus());
if (!invoice.isPosted()) {
@ -999,7 +999,7 @@ public class MatchInvTest extends AbstractTestCase {
info = MWorkflow.runDocumentActionWorkflow(invoice, DocAction.ACTION_Reverse_Correct);
invoice.load(getTrxName());
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
assertEquals(DocAction.STATUS_Reversed, invoice.getDocStatus());
MMatchInv[] afterList = MMatchInv.getInvoiceLine(Env.getCtx(), invoiceLine.get_ID(), getTrxName());
@ -1035,7 +1035,7 @@ public class MatchInvTest extends AbstractTestCase {
ProcessInfo info = MWorkflow.runDocumentActionWorkflow(order, DocAction.ACTION_Complete);
order.load(getTrxName());
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
assertEquals(DocAction.STATUS_Completed, order.getDocStatus());
MInOut receipt = new MInOut(order, DictionaryIDs.C_DocType.MM_RECEIPT.id, order.getDateOrdered()); // MM Receipt
@ -1053,7 +1053,7 @@ public class MatchInvTest extends AbstractTestCase {
info = MWorkflow.runDocumentActionWorkflow(receipt, DocAction.ACTION_Complete);
receipt.load(getTrxName());
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
assertEquals(DocAction.STATUS_Completed, receipt.getDocStatus());
if (!receipt.isPosted()) {
@ -1078,7 +1078,7 @@ public class MatchInvTest extends AbstractTestCase {
info = MWorkflow.runDocumentActionWorkflow(invoice, DocAction.ACTION_Complete);
invoice.load(getTrxName());
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
assertEquals(DocAction.STATUS_Completed, invoice.getDocStatus());
if (!invoice.isPosted()) {
@ -1103,7 +1103,7 @@ public class MatchInvTest extends AbstractTestCase {
info = MWorkflow.runDocumentActionWorkflow(creditMemo, DocAction.ACTION_Complete);
creditMemo.load(getTrxName());
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
assertEquals(DocAction.STATUS_Completed, creditMemo.getDocStatus());
if (!creditMemo.isPosted()) {
@ -1118,7 +1118,7 @@ public class MatchInvTest extends AbstractTestCase {
info = MWorkflow.runDocumentActionWorkflow(creditMemo, DocAction.ACTION_Reverse_Correct);
creditMemo.load(getTrxName());
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
assertEquals(DocAction.STATUS_Reversed, creditMemo.getDocStatus());
MMatchInv[] afterList = MMatchInv.getInvoiceLine(Env.getCtx(), creditMemoLine.get_ID(), getTrxName());
@ -1154,7 +1154,7 @@ public class MatchInvTest extends AbstractTestCase {
ProcessInfo info = MWorkflow.runDocumentActionWorkflow(order, DocAction.ACTION_Complete);
order.load(getTrxName());
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
assertEquals(DocAction.STATUS_Completed, order.getDocStatus());
MInOut receipt = new MInOut(order, DictionaryIDs.C_DocType.MM_RECEIPT.id, order.getDateOrdered()); // MM Receipt
@ -1172,7 +1172,7 @@ public class MatchInvTest extends AbstractTestCase {
info = MWorkflow.runDocumentActionWorkflow(receipt, DocAction.ACTION_Complete);
receipt.load(getTrxName());
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
assertEquals(DocAction.STATUS_Completed, receipt.getDocStatus());
if (!receipt.isPosted()) {
@ -1197,7 +1197,7 @@ public class MatchInvTest extends AbstractTestCase {
info = MWorkflow.runDocumentActionWorkflow(invoice, DocAction.ACTION_Complete);
invoice.load(getTrxName());
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
assertEquals(DocAction.STATUS_Completed, invoice.getDocStatus());
if (!invoice.isPosted()) {
@ -1211,7 +1211,7 @@ public class MatchInvTest extends AbstractTestCase {
assertTrue(invoice.isPosted());
info = MWorkflow.runDocumentActionWorkflow(invoice, DocAction.ACTION_Reverse_Correct);
invoice.load(getTrxName());
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
assertEquals(DocAction.STATUS_Reversed, invoice.getDocStatus());
MMatchInv[] miList = MMatchInv.getInvoiceLine(Env.getCtx(), invoiceLine.get_ID(), getTrxName());

View File

@ -93,7 +93,7 @@ public class CreateFromInvoiceFormTest extends AbstractTestCase {
line1.saveEx();
ProcessInfo info = MWorkflow.runDocumentActionWorkflow(order, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
order.load(getTrxName());
assertEquals(DocAction.STATUS_Completed, order.getDocStatus());
@ -158,7 +158,7 @@ public class CreateFromInvoiceFormTest extends AbstractTestCase {
assertEquals(lines[0].getQtyInvoiced().setScale(2, RoundingMode.HALF_UP), line1.getQtyOrdered().setScale(2, RoundingMode.HALF_UP));
info = MWorkflow.runDocumentActionWorkflow(invoice, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
invoice.load(getTrxName());
assertEquals(DocAction.STATUS_Completed, invoice.getDocStatus());
}
@ -185,7 +185,7 @@ public class CreateFromInvoiceFormTest extends AbstractTestCase {
line1.saveEx();
ProcessInfo info = MWorkflow.runDocumentActionWorkflow(order, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
order.load(getTrxName());
assertEquals(DocAction.STATUS_Completed, order.getDocStatus());
@ -200,7 +200,7 @@ public class CreateFromInvoiceFormTest extends AbstractTestCase {
receiptLine1.saveEx();
info = MWorkflow.runDocumentActionWorkflow(receipt, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
receipt.load(getTrxName());
assertEquals(DocAction.STATUS_Completed, receipt.getDocStatus());
@ -265,7 +265,7 @@ public class CreateFromInvoiceFormTest extends AbstractTestCase {
assertEquals(lines[0].getQtyInvoiced().setScale(2, RoundingMode.HALF_UP), line1.getQtyOrdered().setScale(2, RoundingMode.HALF_UP));
info = MWorkflow.runDocumentActionWorkflow(invoice, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
invoice.load(getTrxName());
assertEquals(DocAction.STATUS_Completed, invoice.getDocStatus());
}

View File

@ -110,7 +110,7 @@ public class CreateFromPackageShipmentFormTest extends AbstractTestCase {
shipmentLine.saveEx();
info = MWorkflow.runDocumentActionWorkflow(shipment, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
shipment.load(getTrxName());
assertEquals(DocAction.STATUS_Completed, shipment.getDocStatus());

View File

@ -91,7 +91,7 @@ public class CreateFromRMAFormTest extends AbstractTestCase {
orderLine.saveEx();
ProcessInfo info = MWorkflow.runDocumentActionWorkflow(order, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
order.load(getTrxName());
assertEquals(DocAction.STATUS_Completed, order.getDocStatus());
@ -106,7 +106,7 @@ public class CreateFromRMAFormTest extends AbstractTestCase {
receiptLine.saveEx();
info = MWorkflow.runDocumentActionWorkflow(receipt, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
receipt.load(getTrxName());
assertEquals(DocAction.STATUS_Completed, receipt.getDocStatus());

View File

@ -96,7 +96,7 @@ public class CreateFromShipmentFormTest extends AbstractTestCase {
orderLine.saveEx();
ProcessInfo info = MWorkflow.runDocumentActionWorkflow(order, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
order.load(getTrxName());
assertEquals(DocAction.STATUS_Completed, order.getDocStatus());

View File

@ -81,7 +81,7 @@ public class BankStatementTest extends AbstractTestCase {
line.saveEx();
ProcessInfo pi = MWorkflow.runDocumentActionWorkflow(stmt, DocAction.ACTION_Complete);
assertFalse(pi.isError());
assertFalse(pi.isError(), pi.getSummary());
stmt.load(getTrxName());
assertEquals(DocAction.STATUS_Completed, stmt.getDocStatus());
@ -144,7 +144,7 @@ public class BankStatementTest extends AbstractTestCase {
line.saveEx();
pi = MWorkflow.runDocumentActionWorkflow(stmt, DocAction.ACTION_Complete);
assertFalse(pi.isError());
assertFalse(pi.isError(), pi.getSummary());
stmt.load(getTrxName());
assertEquals(DocAction.STATUS_Completed, stmt.getDocStatus());
@ -224,7 +224,7 @@ public class BankStatementTest extends AbstractTestCase {
line.saveEx();
pi = MWorkflow.runDocumentActionWorkflow(stmt, DocAction.ACTION_Complete);
assertFalse(pi.isError());
assertFalse(pi.isError(), pi.getSummary());
stmt.load(getTrxName());
assertEquals(DocAction.STATUS_Completed, stmt.getDocStatus());

View File

@ -107,7 +107,7 @@ public class InventoryTest extends AbstractTestCase {
iline.saveEx();
ProcessInfo info = MWorkflow.runDocumentActionWorkflow(inventory, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
inventory.load(trxName);
assertEquals(DocAction.STATUS_Completed, inventory.getDocStatus());
}
@ -164,7 +164,7 @@ public class InventoryTest extends AbstractTestCase {
line1.saveEx();
ProcessInfo info = MWorkflow.runDocumentActionWorkflow(order, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
order.load(getTrxName());
assertEquals(DocAction.STATUS_Completed, order.getDocStatus());
@ -181,7 +181,7 @@ public class InventoryTest extends AbstractTestCase {
receiptLine1.saveEx();
info = MWorkflow.runDocumentActionWorkflow(receipt1, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
receipt1.load(getTrxName());
assertEquals(DocAction.STATUS_Completed, receipt1.getDocStatus());
if (!receipt1.isPosted()) {

View File

@ -264,7 +264,7 @@ public class InvoiceCustomerTest extends AbstractTestCase {
line1.saveEx();
ProcessInfo info = MWorkflow.runDocumentActionWorkflow(order, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
order.load(getTrxName());
assertEquals(DocAction.STATUS_Completed, order.getDocStatus());
line1.load(getTrxName());

View File

@ -95,7 +95,7 @@ public class MProductTest extends AbstractTestCase {
line1.saveEx();
ProcessInfo info = MWorkflow.runDocumentActionWorkflow(order, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
order.load(getTrxName());
assertEquals(DocAction.STATUS_Completed, order.getDocStatus());
@ -110,7 +110,7 @@ public class MProductTest extends AbstractTestCase {
receiptLine1.saveEx();
info = MWorkflow.runDocumentActionWorkflow(receipt1, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
receipt1.load(getTrxName());
assertEquals(DocAction.STATUS_Completed, receipt1.getDocStatus());
if (!receipt1.isPosted()) {

View File

@ -197,7 +197,7 @@ public class ProductionTest extends AbstractTestCase {
line1.saveEx();
ProcessInfo info = MWorkflow.runDocumentActionWorkflow(order, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
order.load(getTrxName());
assertEquals(DocAction.STATUS_Completed, order.getDocStatus());
@ -212,7 +212,7 @@ public class ProductionTest extends AbstractTestCase {
receiptLine1.saveEx();
info = MWorkflow.runDocumentActionWorkflow(receipt1, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
receipt1.load(getTrxName());
assertEquals(DocAction.STATUS_Completed, receipt1.getDocStatus());
if (!receipt1.isPosted()) {
@ -522,7 +522,7 @@ public class ProductionTest extends AbstractTestCase {
line1.saveEx();
ProcessInfo info = MWorkflow.runDocumentActionWorkflow(order, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
order.load(getTrxName());
assertEquals(DocAction.STATUS_Completed, order.getDocStatus());
line1.load(getTrxName());
@ -539,7 +539,7 @@ public class ProductionTest extends AbstractTestCase {
shipmentLine.saveEx();
info = MWorkflow.runDocumentActionWorkflow(shipment, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
shipment.load(getTrxName());
assertEquals(DocAction.STATUS_Completed, shipment.getDocStatus());

View File

@ -104,7 +104,7 @@ public class PurchaseOrderTest extends AbstractTestCase {
line1.saveEx();
ProcessInfo info = MWorkflow.runDocumentActionWorkflow(order, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
order.load(trxName);
assertEquals(DocAction.STATUS_Completed, order.getDocStatus());
line1.load(trxName);
@ -122,7 +122,7 @@ public class PurchaseOrderTest extends AbstractTestCase {
receiptLine.saveEx();
info = MWorkflow.runDocumentActionWorkflow(receipt, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
receipt.load(trxName);
assertEquals(DocAction.STATUS_Completed, receipt.getDocStatus());
@ -165,7 +165,7 @@ public class PurchaseOrderTest extends AbstractTestCase {
line2.saveEx();
ProcessInfo info = MWorkflow.runDocumentActionWorkflow(order, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
order.load(trxName);
assertEquals(DocAction.STATUS_Completed, order.getDocStatus());
@ -185,7 +185,7 @@ public class PurchaseOrderTest extends AbstractTestCase {
receiptLine2.saveEx();
info = MWorkflow.runDocumentActionWorkflow(receipt, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
receipt.load(trxName);
assertEquals(DocAction.STATUS_Completed, receipt.getDocStatus());
@ -205,7 +205,7 @@ public class PurchaseOrderTest extends AbstractTestCase {
invoiceLine2.saveEx();
info = MWorkflow.runDocumentActionWorkflow(invoice, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
invoice.load(trxName);
assertEquals(DocAction.STATUS_Completed, invoice.getDocStatus());
@ -241,7 +241,7 @@ public class PurchaseOrderTest extends AbstractTestCase {
line1.saveEx();
ProcessInfo info = MWorkflow.runDocumentActionWorkflow(order, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
order.load(trxName);
assertEquals(DocAction.STATUS_Completed, order.getDocStatus());
line1.load(trxName);
@ -261,7 +261,7 @@ public class PurchaseOrderTest extends AbstractTestCase {
receiptLine1.saveEx();
info = MWorkflow.runDocumentActionWorkflow(receipt1, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
receipt1.load(trxName);
assertEquals(DocAction.STATUS_Completed, receipt1.getDocStatus());
@ -273,7 +273,7 @@ public class PurchaseOrderTest extends AbstractTestCase {
// reactivate the purchase order
info = MWorkflow.runDocumentActionWorkflow(order, DocAction.ACTION_ReActivate);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
order.load(trxName);
assertEquals(DocAction.STATUS_InProgress, order.getDocStatus());
@ -284,7 +284,7 @@ public class PurchaseOrderTest extends AbstractTestCase {
// complete the order again
info = MWorkflow.runDocumentActionWorkflow(order, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
order.load(trxName);
assertEquals(DocAction.STATUS_Completed, order.getDocStatus());
line1.load(trxName);
@ -306,7 +306,7 @@ public class PurchaseOrderTest extends AbstractTestCase {
receiptLine2.saveEx();
info = MWorkflow.runDocumentActionWorkflow(receipt2, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
receipt2.load(trxName);
assertEquals(DocAction.STATUS_Completed, receipt2.getDocStatus());
@ -447,7 +447,7 @@ public class PurchaseOrderTest extends AbstractTestCase {
line1.saveEx();
ProcessInfo info = MWorkflow.runDocumentActionWorkflow(order, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
order.load(trxName);
assertEquals(DocAction.STATUS_Completed, order.getDocStatus());
@ -470,7 +470,7 @@ public class PurchaseOrderTest extends AbstractTestCase {
receiptLine1.saveEx();
info = MWorkflow.runDocumentActionWorkflow(receipt, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
receipt.load(trxName);
assertEquals(DocAction.STATUS_Completed, receipt.getDocStatus());
@ -605,7 +605,7 @@ public class PurchaseOrderTest extends AbstractTestCase {
line1.saveEx();
ProcessInfo info = MWorkflow.runDocumentActionWorkflow(order, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
order.load(getTrxName());
assertEquals(DocAction.STATUS_Completed, order.getDocStatus());
@ -620,7 +620,7 @@ public class PurchaseOrderTest extends AbstractTestCase {
receiptLine1.saveEx();
info = MWorkflow.runDocumentActionWorkflow(receipt, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
receipt.load(getTrxName());
assertEquals(DocAction.STATUS_Completed, receipt.getDocStatus());
@ -643,7 +643,7 @@ public class PurchaseOrderTest extends AbstractTestCase {
assertEquals(0, rmaLine.getQtyDelivered().intValue(), "Unexpected RMA Line QtyDelivered value");
info = MWorkflow.runDocumentActionWorkflow(rma, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
rma.load(getTrxName());
assertEquals(DocAction.STATUS_Completed, rma.getDocStatus());

View File

@ -147,7 +147,7 @@ public class SalesOrderTest extends AbstractTestCase {
info = MWorkflow.runDocumentActionWorkflow(order, DocAction.ACTION_Complete);
order.load(getTrxName());
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
assertEquals(DocAction.STATUS_Completed, order.getDocStatus());
rollback();
@ -181,7 +181,7 @@ public class SalesOrderTest extends AbstractTestCase {
info = MWorkflow.runDocumentActionWorkflow(order, DocAction.ACTION_Complete);
order.load(getTrxName());
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
assertEquals(DocAction.STATUS_Completed, order.getDocStatus());
rollback();
@ -210,7 +210,7 @@ public class SalesOrderTest extends AbstractTestCase {
line1.saveEx();
ProcessInfo info = MWorkflow.runDocumentActionWorkflow(order, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
order.load(getTrxName());
assertEquals(DocAction.STATUS_Completed, order.getDocStatus());
line1.load(getTrxName());
@ -228,7 +228,7 @@ public class SalesOrderTest extends AbstractTestCase {
shipmentLine.saveEx();
info = MWorkflow.runDocumentActionWorkflow(shipment, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
shipment.load(getTrxName());
assertEquals(DocAction.STATUS_Completed, shipment.getDocStatus());
@ -247,7 +247,7 @@ public class SalesOrderTest extends AbstractTestCase {
shipmentLine.saveEx();
info = MWorkflow.runDocumentActionWorkflow(shipment, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
shipment.load(getTrxName());
assertEquals(DocAction.STATUS_Completed, shipment.getDocStatus());
@ -278,7 +278,7 @@ public class SalesOrderTest extends AbstractTestCase {
line1.saveEx();
ProcessInfo info = MWorkflow.runDocumentActionWorkflow(order, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
order.load(getTrxName());
assertEquals(DocAction.STATUS_Completed, order.getDocStatus());
line1.load(getTrxName());
@ -296,7 +296,7 @@ public class SalesOrderTest extends AbstractTestCase {
shipmentLine.saveEx();
info = MWorkflow.runDocumentActionWorkflow(shipment, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
shipment.load(getTrxName());
assertEquals(DocAction.STATUS_Completed, shipment.getDocStatus());
@ -438,7 +438,7 @@ public class SalesOrderTest extends AbstractTestCase {
line1.saveEx();
ProcessInfo info = MWorkflow.runDocumentActionWorkflow(order, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
order.load(getTrxName());
assertEquals(DocAction.STATUS_Completed, order.getDocStatus());
line1.load(getTrxName());
@ -486,7 +486,7 @@ public class SalesOrderTest extends AbstractTestCase {
order1.saveEx();
info = MWorkflow.runDocumentActionWorkflow(order1, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
order1.load(getTrxName());
assertEquals(DocAction.STATUS_Completed, order1.getDocStatus());
line1 = order1.getLines()[0];
@ -536,7 +536,7 @@ public class SalesOrderTest extends AbstractTestCase {
payment.setC_Currency_ID(order1.getC_Currency_ID());
payment.saveEx();
info = MWorkflow.runDocumentActionWorkflow(payment, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
payment.load(getTrxName());
assertEquals(DocAction.STATUS_Completed, payment.getDocStatus());
@ -576,7 +576,7 @@ public class SalesOrderTest extends AbstractTestCase {
order2.saveEx();
info = MWorkflow.runDocumentActionWorkflow(order2, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
order2.load(getTrxName());
assertEquals(DocAction.STATUS_Completed, order2.getDocStatus());
line1 = order2.getLines()[0];
@ -620,7 +620,7 @@ public class SalesOrderTest extends AbstractTestCase {
payment.setC_Currency_ID(order2.getC_Currency_ID());
payment.saveEx();
info = MWorkflow.runDocumentActionWorkflow(payment, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
payment.load(getTrxName());
assertEquals(DocAction.STATUS_Completed, payment.getDocStatus());
@ -829,7 +829,7 @@ public class SalesOrderTest extends AbstractTestCase {
line1.saveEx();
ProcessInfo info = MWorkflow.runDocumentActionWorkflow(order, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
order.load(getTrxName());
assertEquals(DocAction.STATUS_Completed, order.getDocStatus());
line1.load(getTrxName());
@ -855,7 +855,7 @@ public class SalesOrderTest extends AbstractTestCase {
shipmentLine.saveEx();
info = MWorkflow.runDocumentActionWorkflow(shipment, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
shipment.load(getTrxName());
assertEquals(DocAction.STATUS_Completed, shipment.getDocStatus());
@ -887,7 +887,7 @@ public class SalesOrderTest extends AbstractTestCase {
line1.saveEx();
ProcessInfo info = MWorkflow.runDocumentActionWorkflow(order, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
order.load(getTrxName());
assertEquals(DocAction.STATUS_Completed, order.getDocStatus());
line1.load(getTrxName());
@ -905,12 +905,12 @@ public class SalesOrderTest extends AbstractTestCase {
shipmentLine.saveEx();
info = MWorkflow.runDocumentActionWorkflow(shipment, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
shipment.load(getTrxName());
assertEquals(DocAction.STATUS_Completed, shipment.getDocStatus());
info = MWorkflow.runDocumentActionWorkflow(order, DocAction.ACTION_Close);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
order.load(getTrxName());
assertEquals(DocAction.STATUS_Closed, order.getDocStatus());
line1.load(getTrxName());
@ -935,7 +935,7 @@ public class SalesOrderTest extends AbstractTestCase {
line1.saveEx();
info = MWorkflow.runDocumentActionWorkflow(order, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
order.load(getTrxName());
assertEquals(DocAction.STATUS_Completed, order.getDocStatus());
line1.load(getTrxName());
@ -953,12 +953,12 @@ public class SalesOrderTest extends AbstractTestCase {
shipmentLine.saveEx();
info = MWorkflow.runDocumentActionWorkflow(shipment, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
shipment.load(getTrxName());
assertEquals(DocAction.STATUS_Completed, shipment.getDocStatus());
info = MWorkflow.runDocumentActionWorkflow(order, DocAction.ACTION_Close);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
order.load(getTrxName());
assertEquals(DocAction.STATUS_Closed, order.getDocStatus());
line1.load(getTrxName());
@ -995,7 +995,7 @@ public class SalesOrderTest extends AbstractTestCase {
ProcessInfo info = MWorkflow.runDocumentActionWorkflow(order, DocAction.ACTION_Prepare);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
// No change on warehouse allowed if QtyDelivered, QtyInvoice or QtyReserved != 0 on any line
order.setM_Warehouse_ID(DictionaryIDs.M_Warehouse.HQ.id);

View File

@ -560,7 +560,7 @@ public class CacheTest extends AbstractTestCase {
line1.saveEx();
ProcessInfo info = MWorkflow.runDocumentActionWorkflow(invoice, DocAction.ACTION_Complete);
invoice.load(getTrxName());
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
assertEquals(DocAction.STATUS_Completed, invoice.getDocStatus());
if (!invoice.isPosted()) {
String error = DocumentEngine.postImmediate(Env.getCtx(), invoice.getAD_Client_ID(), MInvoice.Table_ID, invoice.get_ID(), true, getTrxName());

View File

@ -167,7 +167,7 @@ public class WFMaterialReceiptTest extends AbstractTestCase {
line1.saveEx();
ProcessInfo info = MWorkflow.runDocumentActionWorkflow(mr, DocAction.ACTION_Complete);
assertFalse(info.isError());
assertFalse(info.isError(), info.getSummary());
mr.load(trxName);
assertEquals(DocAction.STATUS_Completed, mr.getDocStatus());