Commit Graph
48 Commits
Author SHA1 Message Date
Akash Jain f3997f1feb Improved: Convert AutoPaymentTests.xml to Groovy (OFBIZ-11535)
Thanks, Rohit Hukkeri for report and Pawan Verma for review.
2020-07-04 17:23:34 +05:30
Akash Jain f764266d17 Improved: Convert AutoInvoiceTests.xml to Groovy (OFBIZ-11531)
Thanks, Rohit Hukkeri for the report.
2020-07-02 12:20:18 +05:30
Akash Jain da0002fc4a Improved: Convert AutoAcctgTransTestsSales.xml to Groovy (OFBIZ-11526)
Thanks, Rohit Hukkeri for the report.
2020-07-01 10:57:41 +05:30
Akash Jain 8be1705765 Improved: Convert AutoAcctgTransTestsPurchase.xml to Groovy (OFBIZ-11522)
Thanks, Rohit Hukkeri for the report.
2020-06-30 11:43:23 +05:30
Priya SharmaandPriya Sharma 0f9307c071 Improved: Convert InvoicePerShipmentTests.xml tests to groovy (OFBIZ-11553) (#208)
* Improved: Convert InvoicePerShipmentTests.xml tests to groovy (OFBIZ-11553)
Done following:
- converted all xml test implementation to groovy
- used MockHttpServletRequest MockHttpServletResponse objects for triggering the events
- removed the xml version of the test implementations
- updated the test service mapping in the invoicetests.xml
(OFBIZ-11553)

* Improved: Moved the common code into a method so as to avoid duplication of code.
- passed in two parameters i.e. product id and the invoicePerShipment flag, to be used as per the need of the testcase.
(OFBIz-11553)

* Improved: Added support to get access to the Debug log methods in the groovy tests. (OFBIZ-11553)
- Also updated the references in the InvoicePerShipment tests.

Co-authored-by: Priya Sharma <priya.sharma@hotwaxsystems.com>
2020-06-27 18:09:34 +05:30
Jacques Le Roux 3c22a3f912 Improved: Convert testTaxGeoId test from XML to Groovy (OFBIZ-11560)
This can be tested using

./gradlew "ofbiz --test component=accounting --test suitename=paymentappltests"

Thanks: Rohit Hukkeri for report and Anushi Gupta for the patch
2020-06-23 15:14:02 +02:00
Pawan Verma 1b637fae5c Improved: Converted testBillingAppl test from XML to Groovy(OFBIZ-11558)
Thanks: Rohit for your contribution.
2020-06-14 14:26:42 +05:30
Pawan Verma 6d7c953e5f Improved: Converted assertInvoiceTotal, testInvoiceAppl and testToPayment tests from XML to Groovy.
(OFBIZ-11530)(OFBIZ-11557)(OFBIZ-11559)

Thanks, Rohit for the contribution and Jacques for the review.
2020-06-14 14:17:44 +05:30
Pawan Verma 04bc8be7cb Improved: Converted RateTests from XML to Groovy
(OFBIZ-11561)(OFBIZ-11562)(OFBIZ-11563)(OFBIZ-11564)(OFBIZ-11565)(OFBIZ-11566)(OFBIZ-11567)(OFBIZ-11569)

Thanks: Rohit for the report and Anushi for the patch.
2020-06-01 16:47:10 +05:30
Jacques Le Roux 240903b6cb Improved: Convert testExpirePartyRate test from XML to Groovy (OFBIZ-11568)
This can be tested using

./gradlew "ofbiz --test component=accounting --test suitename=ratetests"

Thanks: Rohit Hukkeri
2020-06-01 10:08:29 +02:00
Suraj Khurana 86b0a4e592 Improved: Refactor simple methods names as per naming convention best practices. (#137)
(OFBIZ-11700)
2020-05-23 10:33:46 +05:30
Pawan Verma 13ab014afb Improved: Convert AutoAcctgFixedAssetTests from XML to Groovy
(OFBIZ-11520)(OFBIZ-11519)(OFBIZ-11517)

Thanks: Rohit for the report and patch and Suraj for the review.
2020-05-15 22:52:19 +05:30
Suraj Khurana 47e5a1ad5e Improved: Convert FixedAssetTests from XML to Groovy. (OFBIZ-11546)(OFBIZ-11547)(OFBIZ-11548)(OFBIZ-11549)(OFBIZ-11550)(OFBIZ-11551)(OFBIZ-11552) Thanks: Rohit for reporting. 2020-04-27 12:44:42 +02:00
Suraj Khurana 9dda9fec3f Improved: Converted testUpdateFixedAssetMeter test from XML to Groovy.
(OFBIZ-11550)
Thanks Rohit Hukkeri for reporting and Aishwary Shrivastava for providing the patch.
2020-04-26 19:49:49 +05:30
Pawan Verma a74480ec5a Improved: Convert AutoAcctgFinAccountTests from XML to Groovy. (#68)
(OFBIZ-11507)(OFBIZ-11508)(OFBIZ-11509)(OFBIZ-11510)(OFBIZ-11511)(OFBIZ-11512)(OFBIZ-11513)(OFBIZ-11514)(OFBIZ-11515)(OFBIZ-11516)

Thanks: Rohit Hukkeri for the report
2020-04-25 12:25:22 +05:30
Pawan Verma ae9f726875 Improved: Convert AutoAcctgCostTests from XML to Groovy (#57)
(OFBIZ-11505)

Thanks: Rohit for the report.
2020-04-25 12:17:08 +05:30
Jacques Le Roux 18d84ac162 Improved: Convert AutoAcctgInvoiceTests Unit Test from XML to Groovy
(OFBIZ-11277)

Removes empty AutoAcctgInvoiceTests.xml
2019-11-11 11:29:14 +01:00
Pawan Verma fbf8531e49 Improved: Convert AutoAcctgInvoiceTests Unit Test from XML to Groovy
(OFBIZ-11277)

Thanks: Jacques Le Roux for the review.
2019-11-11 12:12:21 +05:30
Pawan Verma 47f1e5a75f Improved: Convert AutoAcctgAgreementTests Unit Test from XML to Groovy
(OFBIZ-11248)

Thanks: Devanshu Vyas for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868449 13f79535-47bb-0310-9956-ffa450edef68
2019-10-14 13:31:22 +00:00
Pawan Verma c0141b568d Improved: Convert AutoAcctgAdminTests Unit Test from XML to Groovy
(OFBIZ-11243)

Thanks: Jacques Le Roux for the review and test.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868167 13f79535-47bb-0310-9956-ffa450edef68
2019-10-09 04:45:21 +00:00
Nicolas Malin 526d09eb47 Improved: Migrate BudgetServiceTest from minilang to groovy
With the issue "Convert BudgetServices.xml mini lang to groovy" (OFBIZ-9985)
and issue "Implement Groovy test in testtools" (OFBIZ-9996)
I converted the related test AutoAcctgBudgetTests from minilang to groovy.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1816645 13f79535-47bb-0310-9956-ffa450edef68
2017-11-29 19:18:51 +00:00
Arun Patidar a35b4babfd FIXED: Fixed testExpirePartyRate test. Passed required field as per modification in service definetion. (OFBIZ-9904)
Thanks Suraj Khurana for reporting and patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813622 13f79535-47bb-0310-9956-ffa450edef68
2017-10-28 12:47:33 +00:00
Deepak Dixit a3f7437a09 Improved: Remove cancelAgreement service and added expireAgreement entity-auto service. (OFBIZ-9480)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801355 13f79535-47bb-0310-9956-ffa450edef68
2017-07-09 08:57:20 +00:00
Nicolas Malin a1b7e5a23d Improved: Convert RateServices.xml mini-lang to groovyDSL (OFBIZ-9381)
With service rate minilang conversion to groovy, I renamed deleteRateAmount and deletePartyRate to expireRateAmount and expirePartyRate for more coherence between the service process and the name. The previous service naming have been kept to set them as deprecated

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1799252 13f79535-47bb-0310-9956-ffa450edef68
2017-06-19 18:27:14 +00:00
Jacques Le Roux add732cc07 No functional change, Attribute 'type' is not allowed to appear in element
'field-map'

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1786988 13f79535-47bb-0310-9956-ffa450edef68
2017-03-15 07:28:07 +00:00
Jacques Le Roux 9000ac0f6e Fixed: compareBigDecimals in org.ofbiz.minilang.method.conditional.Compare does
not compare certain values correctly
(OFBIZ-6386)

After fixing the issue  in
trunk r1786079
R16.11 r1786080
R15.12 r1786082

These tests were broken
auto-invoice-tests.testGlPostingOnCancelCheckRun
auto-payment-tests.testGlPostingOnCheckRun

This is due to expressions like this
<set field="totalPayableDebitAmount" value="${payableDebitTotal + 36.43}" type="BigDecimal"/>

Using a local BigDecimal fixes the problem

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1786332 13f79535-47bb-0310-9956-ffa450edef68
2017-03-10 12:23:29 +00:00
Deepak Dixit 259c3b3a45 Fixed: Conveted createInvoiceContactMech service form entity-auto to simple method, there is an bug in EntityAutoEngine. It causing test case failure. This is an quick fix. EntityAuto bug reported under ticket id OFBIZ-9117
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1769650 13f79535-47bb-0310-9956-ffa450edef68
2016-11-14 15:31:13 +00:00
Deepak Dixit 8603d4c4ab Fixed: Fixed typo introduced in r1768219
Thanks Suraj Khurana for reporting the issue. 



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1768662 13f79535-47bb-0310-9956-ffa450edef68
2016-11-08 11:27:13 +00:00
Divesh Dutta 738a12bec1 Improvement: Miniland code readability and consistency improvements
(OFBIZ-8744) (OFBIZ-8745) (OFBIZ-8746) (OFBIZ-8748) (OFBIZ-8829) (OFBIZ-8830) (OFBIZ-8907) (OFBIZ-8908) (OFBIZ-8924) (OFBIZ-8925) 

Thanks: Ankush Upadhyay , Sega patidar , Abhijeet Ashapure for your patches.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1768219 13f79535-47bb-0310-9956-ffa450edef68
2016-11-05 14:14:04 +00:00
Divesh Dutta 85ce444748 Improvement: Minilang code readibility and conistency improvements
(OFBIZ-8445) (OFBIZ-8447) (OFBIZ-8448) (OFBIZ-8450) ( OFBIZ-8451) (OFBIZ-8653) (OFBIZ-8740) (OFBIZ-8741) (OFBIZ-8742) (OFBIZ-8743)

Thanks: Devanshu Vyas, Anuj Jain, Sega Patidar, Abhijeet Ashapure for your patches

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1768209 13f79535-47bb-0310-9956-ffa450edef68
2016-11-05 12:41:35 +00:00
Deepak Dixit fe7f69f130 Improved: Added test cases for following invoice related servicse.
- createInvoiceItem
- createInvoiceStatus
- createInvoiceRole
- createInvoiceTerm
- cancelInvoice
(OFBIZ-8896)(OFBIZ-8898)(OFBIZ-8900)(OFBIZ-89001)

Thanks Deepak Nigam for your contribution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1768183 13f79535-47bb-0310-9956-ffa450edef68
2016-11-05 10:33:56 +00:00
Deepak Dixit 3f9686ca50 Improved: Added test cases for following accounting related servicse.
- cancelFixedAssetStdCost
- createFixedAssetMaint
- createFixedAssetMeter
- createInvoice
-  copyInvoice
- getInvoice
- setInvoiceStatus
-  copyInvoiceToTemplate
(OFBIZ-8840)(OFBIZ-8841)(OFBIZ-8844)(OFBIZ-8877)(OFBIZ-8878)(OFBIZ-8879)(OFBIZ-8880)(OFBIZ-8882)

Thanks Deepak Nigam for your contribution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1768181 13f79535-47bb-0310-9956-ffa450edef68
2016-11-05 10:19:55 +00:00
Deepak Dixit b9e98f09ec Improved: Added test cases for createFinAccountAuth and setFinAccountTransStatus service.
(OFBIZ-8832)(8833)

Thanks Deepak Nigam for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1768175 13f79535-47bb-0310-9956-ffa450edef68
2016-11-05 10:00:52 +00:00
Deepak Dixit bf48f7a92b Improved: Corrected sequence of FinAccount test cases, as it delete the rule in one case and in next case it try to update the deleted data. Now it will fixed the test case failing issue.
(OFBIZ-8814)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1768167 13f79535-47bb-0310-9956-ffa450edef68
2016-11-05 09:18:56 +00:00
Deepak Dixit 226faeafd1 Improved: Added test cases for following rate related servicse.
- getRateAmount
- deleteRateAmount
- updateRateAmount
- getRatesAmountsFromWorkEffortId
- getRatesAmountsFromPartyId
- getRatesAmountsFromEmplPositionTypeId
- updatePartyRate
- deletePartyRate
- filterRateAmountList

(OFBIZ-8747)(OFBIZ-8753)(OFBIZ-8754)(OFBIZ-8755)(OFBIZ-8756)(OFBIZ-8757)(OFBIZ-8758)(OFBIZ-8759)(OFBIZ-8760)(OFBIZ-8761)

Thanks Akash Jain and Pawan Verma for your contribution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1768162 13f79535-47bb-0310-9956-ffa450edef68
2016-11-05 08:38:51 +00:00
Deepak Dixit aaf0dcdc1d Improved: Added missing file for accounting fin service test cases.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1767974 13f79535-47bb-0310-9956-ffa450edef68
2016-11-03 21:03:13 +00:00
Deepak Dixit 48cb545343 Improved: Added unit test case for following accounting related services
- cancelAgreement
- copyAgreement
- getCommissionForProduct
-  createBudget
-  updateBudgetStatus
-  updateProductAverageCostOnReceiveInventory
-  getProductAverageCost
 (OFBIZ-8719)(OFBIZ-8720)(OFBIZ-8721)(OFBIZ-8749)(OFBIZ-8750)(OFBIZ-8751)(OFBIZ-8752)

Thanks  Deepak Nigam  for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1767773 13f79535-47bb-0310-9956-ffa450edef68
2016-11-02 20:07:37 +00:00
Deepak Dixit d2d22b8f29 Improved: Added Unit test case for following services
- removePaymentTypeGlAssignment
-  addPaymentMethodTypeGlAssignment
-  removePaymentMethodTypeGlAssignment
-  getFXConversion

(OFBIZ-8597)(OFBIZ-8598)(OFBIZ-8599)(OFBIZ-8600)

Thanks Deepak Nigam for your contribution.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1767565 13f79535-47bb-0310-9956-ffa450edef68
2016-11-01 20:27:31 +00:00
Deepak Dixit 10af144886 Improved: Added Unit test case for following services
- createGlAccountTypeDefault
- removeGlAccountTypeDefault
-  addInvoiceItemTypeGlAssignment
- removeInvoiceItemTypeGlAssignment
- addPaymentTypeGlAssignment
(OFBIZ-8530)(OFBIZ-8532)(OFBIZ-8533)(OFBIZ-8534)(OFBIZ-8535)

Thanks Deepak Nigam for your contribution.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1767559 13f79535-47bb-0310-9956-ffa450edef68
2016-11-01 20:19:17 +00:00
Deepak Dixit d5ddf1892e Improved: Added Unit test case for following services
- createPartyAcctgPreference
- updatePartyAcctgPreference
-  getPartyAccountingPreferences
- setAcctgCompany
- updateFXConversion
(OFBIZ-8415)(OFBIZ-8416)(OFBIZ-8417)(OFBIZ-8418)(OFBIZ-8419)

Thanks Deepak Nigam for your contribution.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1767555 13f79535-47bb-0310-9956-ffa450edef68
2016-11-01 20:04:55 +00:00
Deepak Dixit 834691742b (OFBIZ-6274) Renamed OFBiz artefacts from org.ofbiz.* to org.apache.ofbiz.*.Thanks to Taher for working on it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752920 13f79535-47bb-0310-9956-ffa450edef68
2016-07-16 10:30:49 +00:00
Jacopo Cappellato f6ab874a61 OFBIZ-7765 converted Minilang code that was using the deprecated "call-bsh" element to use the "script" element with Groovy. Thanks to Deepak Dixit for the work and the patch and to Nicolas Malin for the review and imporvement.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1751945 13f79535-47bb-0310-9956-ffa450edef68
2016-07-08 17:37:36 +00:00
Jacques Le Roux 6e54fba04e A last slightly modified patch from James Yong for "Autocompletion for Compound Widget" - https://issues.apache.org/jira/browse/OFBIZ-7061
I have uploaded a patch for the simple methods schema.
In general, the top level attributes are converted to simpleType, and attributeGroups to complexType.

Changed the following attribute name
1. ‘field’ to ‘fieldType’
2. ‘level’ to ‘levelType'

Denormalize the following attributeGroups
1. attlist.compare
2. attlist.compare-field

Left attributeGroup ‘typeDefaultString’ unchanged, cos it doesn’t matter. Not in use, it seem.

jleroux: we also fixed an issue with 
<xs:element name="field" type="fieldType"/> 
to 
<xs:element ref="field"/>
In the patch 

And I found a small issue (not minilang related) in ExampleCompoundWidgets.xml
-            <sm:log message="CompoundWidgetsFunc runs" sm:level="info"/>
+            <sm:log message="CompoundWidgetsFunc runs" level="info"/>


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1750647 13f79535-47bb-0310-9956-ffa450edef68
2016-06-29 14:06:29 +00:00
Jacques Le Roux 642f42886e A temporary workaround for "Autocompletion for Compound Widget" - https://issues.apache.org/jira/browse/OFBIZ-7061
Reverts the simple method to use the original schema without namespace. "Duplicates" simple-methods.xsd in simple-methods-ns.xsd as we did, to get the simple-method namespace for compound-widgets.

For myself: when we will do the 3rd more elegant option (no schema duplication), have been changed also:
minilang-catalog.xml
compound-widgets.xsd


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1749938 13f79535-47bb-0310-9956-ffa450edef68
2016-06-23 16:40:22 +00:00
Jacques Le Roux c8ba932772 Fixes a "typo" in last commit for "Autocompletion for Compound Widget" - https://issues.apache.org/jira/browse/OFBIZ-7061
We used targetNamespace (should only be used in schema) instead of xsi:schemaLocation



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1749634 13f79535-47bb-0310-9956-ffa450edef68
2016-06-22 05:58:26 +00:00
Jacques Le Roux 89212904bd Completes and finish "Autocompletion for Compound Widget" - https://issues.apache.org/jira/browse/OFBIZ-7061
This is the 2nd step: puts back the original names, so it will be transparent for remaining references in xml catalogs, Java code, etc.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1749489 13f79535-47bb-0310-9956-ffa450edef68
2016-06-21 11:37:47 +00:00
Jacques Le Roux 4931db1ed9 Completes and finish "Autocompletion for Compound Widget" - https://issues.apache.org/jira/browse/OFBIZ-7061 by replacing xsd files references in xml files by -ns.xsd files and removing the concerned xsd files
This is a 1st step, in a 2nd I will put back the original names, so it will be transparent for remaining reference in xml catalogs, Java code, etc.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1749488 13f79535-47bb-0310-9956-ffa450edef68
2016-06-21 11:14:16 +00:00
Jacques Le Roux ec66e361e1 A big but straightforward commit for "Move minilang scripts from component://componentname/script/org/ofbiz to component://componentname/minilang" - https://issues.apache.org/jira/browse/OFBIZ-7267
I removed duplicate paths were componentname was uselessly repeated after component://componentname/script/org/ofbiz (projectmngr was the only one using there project instead)

I had few typos, easily fixed thanks to the tests. There could be still typos but they are unexpected and anyway no-brainer to fix 

I'm still wondering about specialpurpose/example/minilang/README.txt.
I changed its content to 
  "The minilang directory is for static resources that are interpreted at run time rather than being compiled. This goes on the classpath, but does not get built or put into a JAR file."
not sure it makes any sense, I don't see how this relates to the classpath. 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1747712 13f79535-47bb-0310-9956-ffa450edef68
2016-06-10 14:04:30 +00:00