Commit Graph
13 Commits
Author SHA1 Message Date
Akash Jain bc95f057f2 Improved: Convert ProductTest.xml to Groovy (OFBIZ-11852) 2020-08-04 21:52:08 +05:30
Jacques Le Roux 649614507b Fixed: The producttests test suite is brooken
(OFBIZ-11620)

It was initially broken by OFBIZ-9905 so only trunk was concerned.
The fix is simple: there should be no space at the beginning of the file.

But then, when running the test suite, other issues raise.
I guess they  were hidden because of the initial issue.

OFBIZ-10231 introduced 2 issues
A syntax error:
product.removeRelated("ProductKeyword", product)
instead of
product.removeRelated("ProductKeyword")

A wrong usage of storeByCondition

This fixes the 3 issues, to test:
gradlew "ofbiz --test component=product --test suitename=producttests"

Thanks: Pawan for initial report
2020-04-29 10:02:07 +02: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
Jacques Le Roux 4d646ce052 Improved: Use "Create" instead of "Create New" on the various screens of all
components
(OFBIZ-9905)

As the title says + removes now useless labels

Thanks: Aayush Jain for report, Sourabh Jain for the fix, Pierre Smits and 
Rishi Solanki for comments

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1858291 13f79535-47bb-0310-9956-ffa450edef68
2019-04-27 17:56:44 +00:00
Aditya Sharma eaa00b8c25 Added: Unit test case for service - createProductFeatureType
(OFBIZ-9089)
Slightly modified patch. Improved class name and file name.
Thanks Pradhan Yash Sharma for reporting and initial patch & Yogesh Naroliya for providing updated patch

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1856613 13f79535-47bb-0310-9956-ffa450edef68
2019-03-30 09:37:07 +00:00
Suraj Khurana f3fd5ad42a Added: Unit test case for service - updateProductCategory.
(OFBIZ-8579)
Thanks Akash Jain for reporting and Yogesh Naroliya for providing the updated patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1856608 13f79535-47bb-0310-9956-ffa450edef68
2019-03-30 06:57:58 +00:00
Deepak Dixit acbeffc9df Improved: Added unit test case for following product related services
- createProduct, updateProduct
- duplicateProduct
- quickAddVariant
- deleteProductKeywords
- discontinueProductSales
- createProductReview
- updateProductReview
- findProductById
- createProductPrice, updateProductPrice, deleteProductPrice
- createProductCategory
(OFBIZ-8412)(OFBIZ-8506)(OFBIZ-8571)(OFBIZ-8654)(OFBIZ-8572)(OFBIZ-8573)(OFBIZ-8574)
(OFBIZ-8656)(OFBIZ-8575)(OFBIZ-8576)(OFBIZ-8577)(OFBIZ-8578)(OFBIZ-8655)

Thanks Akash Jain and Yash Sharma for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1767977 13f79535-47bb-0310-9956-ffa450edef68
2016-11-03 21:16:42 +00:00
Scott Gray 78feba344c Removed ProductTest.xml, it only contained tests that were already present in FacilityTest.xml
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@893663 13f79535-47bb-0310-9956-ffa450edef68
2009-12-24 00:40:30 +00:00
Scott Gray 7507a2663e Removed a commented test case for which the class didn't exist, add two missing cases
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@826316 13f79535-47bb-0310-9956-ffa450edef68
2009-10-17 22:24:55 +00:00
Scott Gray 4f640fddbb Moved a shipment test definition out of the product tests def and into the shipments.
Also moved the test itself out of ShipmentServices.xml and into ShipmentTests.xml

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@826220 13f79535-47bb-0310-9956-ffa450edef68
2009-10-17 10:37:32 +00:00
Jacques Le Roux b9c3ddef08 2d part and end of an effort to remove trailing spaces
[ \t]+$ => "" (empty)
Should be easier to review when committing changes with trailing spaces removed automatically by anyedit or such tool (please refer to http://docs.ofbiz.org/x/mg)

Of course this effort to remove trailing spaces has no functional implications.

Actually, I was doing a 1st commit and as it's long to upload, I got conflicts with r763135
In the meantime I did some refactoring also in *.java and *.groovy files :
){ => ) {
if( => if (
while( => while (
}else => } else
else{ => else {
switch( => switch (
try{ => try {
}catch => } catch
catch( => catch (
}finally{ => } finally {

So these changes are also in this commit, should not be a problem anyway.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763175 13f79535-47bb-0310-9956-ffa450edef68
2009-04-08 10:54:51 +00:00
Vikas Mayur 554dec4b98 Removed duplicate test cases for testing UserLogin in database - There is already one in example component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@667067 13f79535-47bb-0310-9956-ffa450edef68
2008-06-12 13:04:12 +00:00
Marco Risaliti af61b954de A patch from Shubham Goyal "JUnit Test Case for Receive Other Shipment" (OFBIZ-1465)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@642365 13f79535-47bb-0310-9956-ffa450edef68
2008-03-28 20:17:57 +00:00