This is an automated email from the ASF dual-hosted git repository.
pawan 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 0f777b7 Fixed: The producttests test suite is brooken (OFBIZ-11620) 0f777b7 is described below commit 0f777b7de26c442c8dbfd91e27fc007bc9b3298a Author: Pawan Verma <[hidden email]> AuthorDate: Wed Apr 29 14:53:26 2020 +0530 Fixed: The producttests test suite is brooken (OFBIZ-11620) Corrected Class name and ProductAssoc entity name. Thanks: Jacques for the partial fix. --- .../product/groovyScripts/product/product/ProductServices.groovy | 2 +- .../groovy/org/apache/ofbiz/product/ProductPromoActionTests.groovy | 4 ++-- .../main/groovy/org/apache/ofbiz/product/ProductPromoCondTests.groovy | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/applications/product/groovyScripts/product/product/ProductServices.groovy b/applications/product/groovyScripts/product/product/ProductServices.groovy index a520130..80c85d9 100644 --- a/applications/product/groovyScripts/product/product/ProductServices.groovy +++ b/applications/product/groovyScripts/product/product/ProductServices.groovy @@ -340,7 +340,7 @@ def discontinueProductSales() { delegator.storeByCondition("ProductCategoryMember", [thruDate: nowTimestamp], condition) // expire product from all associations going to it - delegator.storeByCondition("ProducAssoc", + delegator.storeByCondition("ProductAssoc", [thruDate: nowTimestamp], condition) return success() } diff --git a/applications/product/src/main/groovy/org/apache/ofbiz/product/ProductPromoActionTests.groovy b/applications/product/src/main/groovy/org/apache/ofbiz/product/ProductPromoActionTests.groovy index 72cbf8f..cbf7264 100644 --- a/applications/product/src/main/groovy/org/apache/ofbiz/product/ProductPromoActionTests.groovy +++ b/applications/product/src/main/groovy/org/apache/ofbiz/product/ProductPromoActionTests.groovy @@ -35,8 +35,8 @@ import org.apache.ofbiz.service.ServiceUtil import java.sql.Timestamp import java.util.Map -class ProductPromoActionTest extends OFBizTestCase { - public ProductPromoActionTest(String name) { +class ProductPromoActionTests extends OFBizTestCase { + public ProductPromoActionTests(String name) { super(name) } diff --git a/applications/product/src/main/groovy/org/apache/ofbiz/product/ProductPromoCondTests.groovy b/applications/product/src/main/groovy/org/apache/ofbiz/product/ProductPromoCondTests.groovy index d463530..b1f59e5 100644 --- a/applications/product/src/main/groovy/org/apache/ofbiz/product/ProductPromoCondTests.groovy +++ b/applications/product/src/main/groovy/org/apache/ofbiz/product/ProductPromoCondTests.groovy @@ -27,8 +27,8 @@ import org.apache.ofbiz.order.shoppingcart.ShoppingCart import org.apache.ofbiz.service.testtools.OFBizTestCase import org.apache.ofbiz.service.ServiceUtil -class ProductPromoCondTest extends OFBizTestCase { - public ProductPromoCondTest(String name) { +class ProductPromoCondTests extends OFBizTestCase { + public ProductPromoCondTests(String name) { super(name) } |
Free forum by Nabble | Edit this page |