Commit Graph
41 Commits
Author SHA1 Message Date
Akash Jain 38d17e2667 Improved: Convert OrderTests.xml to Groovy (OFBIZ-11849) 2020-07-07 11:01:31 +05:30
Suraj Khurana 0393ebe994 Fixed: testIntegrations caused due to invalid cust request status 'CRQ_SUBMITTED', so loaded QuoteTestData.xml with proper status before executing CustRequestTests. Also fixed default dateValue for nowTimestamp as in case of overrided fromDate, entity-auto doesn't take care of it.
Thanks: Jacques Le Roux for reporting.
2020-05-06 12:16:12 +05:30
Gil Portenseigne eba4157c59 Improved: Convert OrderServices.xml mini-lang to groovyDSL : getNextOrderId
(OFBIZ-9984)
Thanks Julien for your old patch, it has been improved.
Add a new integration test for the service 'getNextOrderId'
2020-03-06 15:46:58 +01:00
Jacques Le Roux 406cd08d3d Fixed: Move OrderNotificationTests.groovy from order to ecommerce
(OFBIZ-11255)

Fixes the errors in framework only tests, order and ecommerce suites tests pass


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868591 13f79535-47bb-0310-9956-ffa450edef68
2019-10-18 13:16:39 +00:00
Jacques Le Roux 3231d9178a Improved: Refactor OrderTests.groovy and separate order and return test services
(OFBIZ-11239)

Based on Suraj's patch
This also moves
  testQuickReturnOrder to OrderReturnTests.groovy 
  the requirement tests in OrderRequirementTests.groovy
  renames OrderTest.groovy to OrderNotificationTests.groovy since it contains
  only that
  renames test-case for OrderTests.xml "order-tests-xml"
 
Test pass

Thanks: Suraj for initial patch

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868126 13f79535-47bb-0310-9956-ffa450edef68
2019-10-08 10:50:18 +00:00
Jacques Le Roux cc698a468c Improved: Unit test case for service - testSendOrderChangeNotification
(OFBIZ-8811)

Removes duplicated order-tests-data-load

Tests pass

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867926 13f79535-47bb-0310-9956-ffa450edef68
2019-10-03 10:49:07 +00:00
Jacques Le Roux 02fee75365 Improved: Unit test case for service - testSendOrderChangeNotification
(OFBIZ-8811)

Fixes to right place

There were no reasons to add an OrderTest.xml file, 
testSendOrderChangeNotification fits in OrderTests.xml

It was even wrong because of duplicated order-test test-case

Tests pass

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867921 13f79535-47bb-0310-9956-ffa450edef68
2019-10-03 09:28:37 +00:00
Jacques Le Roux b76d95d72a Improved: Unit test case for service - testSendOrderChangeNotification
(OFBIZ-8811)(OFBIZ-9647)(OFBIZ-9671)

While working on this I stumbled upon an issue related with 
webSiteId="OrderEntry" well related by Ratnesh Upadhyay in OFBIZ-9647.

Unlike him I decided not to remove the webSiteId="OrderEntry" entries but to
replace them by webSiteId="WebStore"

Tests pass!


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867889 13f79535-47bb-0310-9956-ffa450edef68
2019-10-02 14:46:00 +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 5dfb8a24cd Improved: Unit test case for service - CreateReturnItemShipment.
(OFBIZ-8859)
Thanks Avnindra Sharma for reporting the issue and Yogesh Naroliya for providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1860005 13f79535-47bb-0310-9956-ffa450edef68
2019-05-25 16:45:44 +00:00
Suraj Khurana 2da3a43aa1 Fixed: Test integration were failing if plugins directory is empty due to dependent data on projectmgr component.
This came into notice after revision 1856609.
Thanks Jacques for reporting it and everyone else who participated in the discussion.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1859111 13f79535-47bb-0310-9956-ffa450edef68
2019-05-11 11:58:20 +00:00
Suraj Khurana 362f154b74 Added: Unit test case for service - CreateReturnAdjustment.
(OFBIZ-8857)
Thanks Avnindra Sharma for reporting, Pawan Verma for discussion and Vivek Singh Bisen for providing the updated patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1856609 13f79535-47bb-0310-9956-ffa450edef68
2019-03-30 07:12:25 +00:00
Suraj Khurana 039dfbf5fa Added: Unit test case for service - AddRequirementTask.
(OFBIZ-8931)
Thanks Avnindra Sharma for reporting and Pawan Verma for providing the updated patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1856596 13f79535-47bb-0310-9956-ffa450edef68
2019-03-30 05:13:33 +00:00
Suraj Khurana 80c659bbee Added:Unit test case for service - CustRequestPermissionCheck.
(OFBIZ-8958)
Thanks Avnindra Sharma for reporting, Deepak Nigam and Yogesh Naroliya for providing the patches.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1851143 13f79535-47bb-0310-9956-ffa450edef68
2019-01-12 06:51:13 +00:00
Nicolas Malin 98814e5c03 Improved: Convert QuoteServices.xml mini lang to groovy - Deprecate Mini Lang
(OFBIZ-10553) (OFBIZ-9350)
Convert all QuoteServices.xml and their xml test
Thanks to Antoine Ouvrard, Leila Mekika, Gil Portenseigne and Mathieu Lirzin for this team work to convert all function and tests case

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1849800 13f79535-47bb-0310-9956-ffa450edef68
2018-12-27 14:40:03 +00:00
Rishi Solanki cfef87d6f1 Improved: Remove empty field values from xml data files so that it will not override existing data with empty values. Removed all empty data fields from data files.
(OFBIZ-10282)
Thanks to Arun Patidar for reporting and review.
Thanks to Suraj Khurana for providing patch for the improvement.
Thanks to Jacques for discussion and finalizing the work.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1830545 13f79535-47bb-0310-9956-ffa450edef68
2018-04-30 10:52:55 +00:00
Rishi Solanki 00260d1204 Improvement: Missing Relationship from OrderHeader to WebSite (OFBIZ-9647). Added relationship from order header to website entity. And removed wrong data.
Applied patch from (OFBIZ-9647). Thanks Ratnesh Upadhyay for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1809749 13f79535-47bb-0310-9956-ffa450edef68
2017-09-26 14:33:05 +00:00
Deepak Dixit 52d5517c44 Improved: Added unit test case for following order related services
- SetCustRequestStatus
- GetRequirementsForSupplier
- GetNextQuoteId
 - GetCustRequestsByRole
 - CreateRequirementRole
 - CreateRequirementFromItemATP
 - CreateCustRequestContent
 - CreateCustRequestAttribute
 - CreateAutoRequirementsForOrder
 - CreateATPRequirementsForOrder
 - CopyQuoteItem
 - CopyCustRequestItem


 (OFBIZ-8962)(OFBIZ-8961)(OFBIZ-8960)(OFBIZ-8959)(OFBIZ-8957)(OFBIZ-8956)(OFBIZ-8945)(OFBIZ-8944)(OFBIZ-8943)(OFBIZ-8942)(OFBIZ-8941)(OFBIZ-8940)

Thanks Avnindra Sharma for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1768214 13f79535-47bb-0310-9956-ffa450edef68
2016-11-05 13:37:02 +00:00
Deepak Dixit 3c4a8889e7 Improved: Added unit test case for following order related services
- CreateCustRequestItem
- CreateCustRequestItemNote
- CreateCustRequestNote
- CreateCustRequestParty
- CreateCustRequestStatus
- CreateOrderDeliverySchedule
- CreateOrderItemChange
- CreateOrderPaymentApplication
- CreateQuote
- CreateQuoteAttribute
- CreateQuoteCoefficient
- CreateQuoteRole
- CreateRequirement

 (OFBIZ-8947)(OFBIZ-8946)(OFBIZ-8948)(OFBIZ-8949)(OFBIZ-8950)(OFBIZ-8854)(OFBIZ-8855)(OFBIZ-8856)(OFBIZ-8951)(OFBIZ-8952)(OFBIZ-8963)(OFBIZ-8954)(OFBIZ-8955)

Thanks Avnindra Sharma for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1768206 13f79535-47bb-0310-9956-ffa450edef68
2016-11-05 12:18:05 +00:00
Deepak Dixit 6ebf17a01b Improved: Unit test case for service - sendOrderConfirmation
(OFBIZ-8507)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1766723 13f79535-47bb-0310-9956-ffa450edef68
2016-10-26 19:10:14 +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
Jacques Le Roux 5abf245037 Implements "Allow to edit ship groups contents after and order has been created" https://issues.apache.org/jira/browse/OFBIZ-5761
From an UI perspective this adds a "View ship group by order item" button which allows to create new ship groups by order items and to move the quantity of the order item between ship groups.
This is the adaptation of the "oisg-management" addon for R12.04 to the trunk. Thanks to Nicolas and Leila from Nereides for their help

For more information refer to the Jira issue.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1643077 13f79535-47bb-0310-9956-ffa450edef68
2014-12-03 10:15:20 +00:00
Adam Heath d4ae304e5a Fix OFBIZ-5565: FinAccountHelper.getFinAccountFromCode() no longer
returns financial account.

Now that EntityCondition lookups work against encrypted fields, there is
no longer a need to do the field encryption locally in the above method.
So, just pass the value directly into the entity engine.

There are also test cases, to prevent this breakage from occurring
again.

This commit depends on r1604967 and r1604968, at the minimum.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1604993 13f79535-47bb-0310-9956-ffa450edef68
2014-06-24 01:30:56 +00:00
Jacopo Cappellato 028e08bc3b Reorganized test data and unit tests to remove wrong dependencies from accounting to assetmaint and from order to scrum; all tests are now successful even when all specialpurpose components (*except* ecommerce) are disabled.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1462421 13f79535-47bb-0310-9956-ffa450edef68
2013-03-29 07:07:59 +00:00
Adam Heath 74a955f769 TYPO: s/shopinglisttests/shoppinglisttests/
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1338371 13f79535-47bb-0310-9956-ffa450edef68
2012-05-14 19:52:32 +00:00
Hans Bakker d99e8ab7b7 add junit test for configurable service product using inventory
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1221590 13f79535-47bb-0310-9956-ffa450edef68
2011-12-21 03:48:43 +00:00
Jacques Le Roux cfc301acdb A patch from Paul Foxworthy "loadCartFromQuote should put tax adjustments into the shipping group" https://issues.apache.org/jira/browse/OFBIZ-4391
loadCartFromQuote is currently copying all adjustments from a quote into the order-wide adjustments for the shopping cart. Tax adjustments should be copied into the shipping group, i.e. treated in a different way from adjustments like a discount.

There's also a, unit test that demonstrates the bug. Apply just the test patch and you should see the problem. Apply the other patch with the change to loadCartFromQuote, and the test should pass.

jleroux: also a French label fix

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1167606 13f79535-47bb-0310-9956-ffa450edef68
2011-09-10 21:08:01 +00:00
Hans Bakker 483299c5ec New product type: Fixed Asset Usage For Rental of an asset which is shipped from and returned to inventory. Including Junit test and demo data. More explanation will follow in a blog on the 'what is new page'
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1167015 13f79535-47bb-0310-9956-ffa450edef68
2011-09-09 06:40:28 +00:00
Hans Bakker 38935cf7db New product type SERVICE_PRODUCT which was discussed in the mailing list. blog linked to the what is new file will be added later
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1166543 13f79535-47bb-0310-9956-ffa450edef68
2011-09-08 07:07:07 +00:00
Hans Bakker 103abfca59 add some shopping cart tests
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1067869 13f79535-47bb-0310-9956-ffa450edef68
2011-02-07 07:37:29 +00:00
Hans Bakker de2a05030a amend quote tests so buildbot should be happy now
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1067866 13f79535-47bb-0310-9956-ffa450edef68
2011-02-07 07:15:49 +00:00
Adam Heath b273b52dad Finally created a script to find and fix tons of missing final newlines.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@982870 13f79535-47bb-0310-9956-ffa450edef68
2010-08-06 04:46:48 +00:00
Adam Heath 3e7f6314f7 Remove testdef to a class that doesn't exist.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931024 13f79535-47bb-0310-9956-ffa450edef68
2010-04-06 05:28:12 +00:00
Hans Bakker 3cd6582cef make the custrequest tests work again (failed because of r924647 ) and move them from the party to the order component in their own file
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@924662 13f79535-47bb-0310-9956-ffa450edef68
2010-03-18 07:33:48 +00:00
Vikas Mayur c185f5455a Minor corrections to the test case name.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@906482 13f79535-47bb-0310-9956-ffa450edef68
2010-02-04 13:45:23 +00:00
Vikas Mayur e008a2b875 Added a new test suite containing basic test case on Shopping List.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@906384 13f79535-47bb-0310-9956-ffa450edef68
2010-02-04 07:25:11 +00:00
Scott Gray e556c70ca1 Changed all test suites (where appropriate) containing simple method tests to use the new location only definition so that all tests from a given simple methods document are automatically included
Required changing the names of a couple of inline methods in PartyTests.xml

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@893665 13f79535-47bb-0310-9956-ffa450edef68
2009-12-24 00:41:27 +00:00
Scott Gray ed6d137ab8 A few tests for the createQuoteWorkEffort service
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@889922 13f79535-47bb-0310-9956-ffa450edef68
2009-12-12 10:51:17 +00:00
Vikas Mayur 3d0c81900f Applied patch from Jira issue OFBIZ-1469 (https://issues.apache.org/jira/browse/OFBIZ-1469)
containing JUnit test case for Creating Sales Order.
Thanks to Alok Agnihotri for posting a new patch resolving conflicts and testing this exclusively

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@631218 13f79535-47bb-0310-9956-ffa450edef68
2008-02-26 14:08:30 +00:00
Marco Risaliti 3ddd5c2093 I have review and modified the patch from Shubham Goyal about JUnit test case for Creating a Purchase Order (OFBIZ-1464).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@603777 13f79535-47bb-0310-9956-ffa450edef68
2007-12-12 23:28:12 +00:00