This is an automated email from the ASF dual-hosted git repository.

jleroux pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 298a64962b Improved: Moves groovy scripts to src and adds a package 
declaration to all of them (OFBIZ-12813)
298a64962b is described below

commit 298a64962b030d94b564101a67a2cfe8b4b05f82
Author: Jacques Le Roux <jacques.le.r...@les7arts.com>
AuthorDate: Sat Mar 30 10:57:17 2024 +0100

    Improved: Moves groovy scripts to src and adds a package declaration to
    all of them (OFBIZ-12813)
    
    Replaces UtilValidate.isNotEmpty() by Groovy Truth
---
 .../apache/accounting/accounting/InvoicePerShipmentTests.groovy  | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git 
a/applications/accounting/src/test/groovy/org/apache/accounting/accounting/InvoicePerShipmentTests.groovy
 
b/applications/accounting/src/test/groovy/org/apache/accounting/accounting/InvoicePerShipmentTests.groovy
index 41468a824e..0630ea0d85 100644
--- 
a/applications/accounting/src/test/groovy/org/apache/accounting/accounting/InvoicePerShipmentTests.groovy
+++ 
b/applications/accounting/src/test/groovy/org/apache/accounting/accounting/InvoicePerShipmentTests.groovy
@@ -18,7 +18,6 @@
  */
 package org.apache.accounting.accounting
 
-import org.apache.ofbiz.base.util.UtilValidate
 import org.apache.ofbiz.entity.GenericValue
 import org.apache.ofbiz.order.shoppingcart.CheckOutEvents
 import org.apache.ofbiz.order.shoppingcart.ShoppingCartEvents
@@ -47,7 +46,7 @@ class InvoicePerShipmentTests extends OFBizTestCase {
          Step 4) Check invoice should not created.
          */
         List invoices = testInvoicePerShipment('GZ-1000', 'N')
-        assert UtilValidate.isEmpty(invoices)
+        assert invoices
     }
 
     void testInvoicePerShipmentSetTrue() {
@@ -58,7 +57,7 @@ class InvoicePerShipmentTests extends OFBizTestCase {
          Step 4) Check invoice should be created.
          */
         List invoices = testInvoicePerShipment('GZ-1000', 'Y')
-        assert UtilValidate.isNotEmpty(invoices)
+        assert !invoices
     }
 
     void testInvoicePerShipmentSetOrderFalse() {
@@ -68,7 +67,7 @@ class InvoicePerShipmentTests extends OFBizTestCase {
          Step 3) Check invoice should not be created.
          */
         List invoices = testInvoicePerShipment('GZ-2644', 'N')
-        assert UtilValidate.isEmpty(invoices)
+        assert invoices
     }
 
     void testInvoicePerShipmentSetOrderTrue() {
@@ -78,7 +77,7 @@ class InvoicePerShipmentTests extends OFBizTestCase {
          Step 3) Check invoice should be created.
          */
         List invoices = testInvoicePerShipment('GZ-2644', 'Y')
-        assert UtilValidate.isNotEmpty(invoices)
+        assert !invoices
     }
 
     private List testInvoicePerShipment(String productId, String 
invoicePerShipment) {

Reply via email to