Commit Graph
83 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
Pawan Verma bb18170d71 Improved: Converted test-group to test-case as there is only one test case.(OFBIZ-11560) 2020-06-24 12:30:30 +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 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
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
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
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
Jacques Le Roux 12073747f5 Improved: Unit test case for service - createAcctgTransEntry
(OFBIZ-9004)

Thanks: Deepak Nigam for initial patch and Suraj for Groovy conversion

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868433 13f79535-47bb-0310-9956-ffa450edef68
2019-10-14 08:57:32 +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
Suraj Khurana 75787be0c8 Improved: Unit test case for service - createPaymentContent.
(OFBIZ-9093)
Thanks: Deepak Nigam for reporting and Yogesh Naroliya for providing the updated patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868057 13f79535-47bb-0310-9956-ffa450edef68
2019-10-06 12:22:40 +00:00
Pawan Verma a21cc536ef Improved: Added Unit test case for following services
(OFBIZ-8936)(OFBIZ-8874)(OFBIZ-8873)(OFBIZ-8872)(OFBIZ-8871)(OFBIZ-8870)(OFBIZ-8866)

- createSimpleTextContentForInvoice
- processWaitReplacementReturn
- processWaitReplacementReservedReturn
- processSubscriptionReturn
- processReplacementReturn
- processReplaceImmediatelyReturn
- processRefundOnlyReturn

Thanks: Deepak Nigam, Avnindra Sharma and Anushi Gupta for your contribution.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867666 13f79535-47bb-0310-9956-ffa450edef68
2019-09-28 12:08:46 +00:00
Mathieu Lirzin 9b68a55d64 Improved: Compile groovy integration tests
(OFBIZ-11165)

Since there is no need for dynamic reload for integration tests,
it is better to compile Groovy tests.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1865786 13f79535-47bb-0310-9956-ffa450edef68
2019-08-23 18:00:01 +00:00
Suraj Khurana 84f795d2e0 Improved: Unit test case for service - quickSendPayment.
(OFBIZ-9086)
Thanks Deepak Nigam for reporting the ticket and Anushi Gupta for providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1858283 13f79535-47bb-0310-9956-ffa450edef68
2019-04-27 15:34:37 +00:00
Suraj Khurana 46140993a1 Improved: Unit test case for service - setPaymentStatus.
(OFBIZ-9084)
Thanks Deepak Nigam for reporting and Anushi Gupta for providing the updated patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1858267 13f79535-47bb-0310-9956-ffa450edef68
2019-04-27 12:02:22 +00:00
Suraj Khurana 3993d23bf8 Improved: Unit test case for service - createInvoiceContent.
(OFBIZ-8932)
Thanks Deepak Nigam for reporting and Vivek Singh Bisen for providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1858260 13f79535-47bb-0310-9956-ffa450edef68
2019-04-27 09:49:00 +00:00
Suraj Khurana d6fc9b2359 Added: Unit test case for service - createAcctgTrans.
(OFBIZ-1463)
Thanks Deepak Nigam for reporting and Yogesh Naroliya for providing the updated patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1855077 13f79535-47bb-0310-9956-ffa450edef68
2019-03-09 05:07:52 +00:00
Suraj Khurana be6b60a8f6 Added:Unit test case for service - updatePaymentGatewayConfig.
(OFBIZ-9115)
Thanks Deepak Nigam for reporting and Yogesh Naroliya for providing the updated patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1851154 13f79535-47bb-0310-9956-ffa450edef68
2019-01-12 08:39:11 +00:00
Suraj Khurana 5283691156 Added:Unit test case for service - createPayment.
(OFBIZ-9083)
Thanks Deepak Nigam for reporting and Yogesh Naroliya for providing the updated patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1851148 13f79535-47bb-0310-9956-ffa450edef68
2019-01-12 08:14:18 +00:00
Jacques Le Roux 3190e0ff2e Improved: Create patch for removal of IDEAL code in framework
(OFBIZ-5444)

Removes all iDEAL specifics from the framework (actually only applications)

Thanks: Pierre Smits

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1846227 13f79535-47bb-0310-9956-ffa450edef68
2018-11-09 10:20:10 +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
Deepak Dixit 87a258eb5a Fixed: Fixed typo.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1768199 13f79535-47bb-0310-9956-ffa450edef68
2016-11-05 11:40:05 +00:00
Deepak Dixit c410937cfa Fixed: Fixed typo in fin account test data.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1768193 13f79535-47bb-0310-9956-ffa450edef68
2016-11-05 11:28:52 +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 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 a0b32a9ec5 Improved: Added unit test case for following accounting related services
- createFinAccount
- updateFinAccount
- deleteFinAccount
- createFinAccountStatus
- createFinAccountTrans
- createFinAccountRole
- updateFinAccountRole
-  deleteFinAccountRole
(OFBIZ-8814)(OFBIZ-8815)(OFBIZ-8816)(OFBIZ-8817)(OFBIZ-8818)(OFBIZ-8819)(OFBIZ-8820)(OFBIZ-8821)

Thanks Deepak Nigam for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1767972 13f79535-47bb-0310-9956-ffa450edef68
2016-11-03 20:57:33 +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
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
Jacopo Cappellato 26ae0b63bb Removed incomplete JUnit test that was created by Hans Bakker in commit 1449615 in order to test the feature associated to a new field calcTaxAfterPromotion; after this, Paul Foxworthy reverted the commit in rev. 1468865 but he forgot to remove the whole test and instead he updated it, leaving it in a useless state.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1554373 13f79535-47bb-0310-9956-ffa450edef68
2013-12-31 06:52:35 +00:00
Hans Bakker 52326232ef currently tax is calculated before promotion, added am option in the productstore to be able to set the tax calculation after promotion. This in order to remain backward compatible. Also added a junit test for this. Contribution from Tom, employee from Antwebsystems
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1449615 13f79535-47bb-0310-9956-ffa450edef68
2013-02-25 08:25:07 +00:00
Hans Bakker 4a6bae7025 split up accounting auto post test in sales and purchase and added some asserts
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1220339 13f79535-47bb-0310-9956-ffa450edef68
2011-12-18 06:27:29 +00:00
Jacopo Cappellato 210988d933 Re-enabled accounting tests: they have been disabled because of an issue with tests failing if executed in a platform with a locale different than en. OFBIZ-4624
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1215166 13f79535-47bb-0310-9956-ffa450edef68
2011-12-16 14:54:38 +00:00
Hans Bakker 4e69413b4b commented out accounting auto tests which did not work for a long time
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1213650 13f79535-47bb-0310-9956-ffa450edef68
2011-12-13 11:04:57 +00:00
Hans Bakker badd567bf3 remove the possibility to update payment applications: is too complicated and can cause posting problems, only allow add and delete, this is at the payment side
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1186102 13f79535-47bb-0310-9956-ffa450edef68
2011-10-19 11:19:21 +00:00
Hans Bakker 2a61998b2d junit tests to test the change in r1163083 to have invoicing per order/or shipment. Also added spring jar files to be able to test ofbiz events.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1163084 13f79535-47bb-0310-9956-ffa450edef68
2011-08-30 04:25:28 +00:00
Hans Bakker 06d0aae7d6 Add the 'ideal' payment gateway, often used in the Netherlands, see http://www.ideal.nl, install instruction in the thirdparty src folder
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1062608 13f79535-47bb-0310-9956-ffa450edef68
2011-01-24 02:27:11 +00:00