Commit Graph
96 Commits
Author SHA1 Message Date
Adam Heath 93cc17b5b0 Remove a bunch of wildcard imports.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894106 13f79535-47bb-0310-9956-ffa450edef68
2009-12-27 19:54:58 +00:00
Adam Heath 18d0ceeaf9 Remove most docs targets, they are all the same anyways.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894031 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:28:48 +00:00
Adam Heath 1c269fc012 Convert all javadoc calls to use fileset instead of sourcepath; this
allows excludes to be processed correctly.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894030 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:24:20 +00:00
Adam Heath 56dac0bf9e Add a classes target to common.xml, and switch most build.xml to use it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894024 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:16:56 +00:00
Adam Heath 47b0a876ed Switch all javac15 to javac16.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894022 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:12:04 +00:00
Scott Gray e1cbfb28ed Added the ability to include all tests from a given simple method document in a test suite by only specifying the location and not the method name. All simple methods with a method name beginning with "test" will be included and will be executed in the order present in the document. Example usage:
<test-case case-name="auto-accounting-transaction-tests">
        <simple-method-test location="component://accounting/script/org/ofbiz/accounting/test/AutoAcctgTransTests.xml"/>
    </test-case>
Basically just mimics the behavior of the junit-test-suite tag but for simple method tests

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@893662 13f79535-47bb-0310-9956-ffa450edef68
2009-12-24 00:40:19 +00:00
Adam Heath ad3b379d34 Fix groovy class parsing/caching.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@891070 13f79535-47bb-0310-9956-ffa450edef68
2009-12-15 23:24:02 +00:00
Scott Gray 95b37037cf Updated incorrect selenium download link, added notes to try and prevent it from happening again
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@890518 13f79535-47bb-0310-9956-ffa450edef68
2009-12-14 22:41:03 +00:00
Jacques Le Roux 47c9613346 Some easy documentation (cwiki) links changes following r888510
I have found a way to fix tinylinks :D http://confluence.atlassian.com/pages/viewpage.action?pageId=162988142

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@888559 13f79535-47bb-0310-9956-ffa450edef68
2009-12-08 20:23:23 +00:00
Jacques Le Roux de77e0bca8 A patch from Erwan de FERRIERES "seleniumXML improvement and corrections" (https://issues.apache.org/jira/browse/OFBIZ-3296) - OFBIZ-3296
corrected the XML tests
added new functions in selenium for better conversion from selenese and use with the XML tests :
    * echo
    * verifyTextPresent
    * verifyTextNotPresent
    * assertTitle
    * assertConfirmation
Removed comments
    *  waitForPageToLoad : just wait the page to load before any other action (time in ms)
    * click : make a click on an element
    * assertContains : assert an element contains some code.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@887126 13f79535-47bb-0310-9956-ffa450edef68
2009-12-04 09:27:30 +00:00
Jacques Le Roux 2de8e3d53a A patch from Erwan de FERRIERES "Cleaning of the seleniumXml.java and seleniumIDEconverter.java files" (https://issues.apache.org/jira/browse/OFBIZ-3286) - OFBIZ-3286
This patch do not modify the files, but is just for cleaning this files :
seleniumXml.java
seleniumIDEconverter.java

There is a lot of LOC commented in the code, a lot of whitespaces and so on. This patch removes all of this.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@886301 13f79535-47bb-0310-9956-ffa450edef68
2009-12-02 21:04:54 +00:00
Jacques Le Roux db9d329c2c A enhanced patch from Erwan de FERRIERES "Bug when using convert selenium html tests to xml" (https://issues.apache.org/jira/browse/OFBIZ-3282) - OFBIZ-3282
This line was causing the error : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
What Erwan done :
    * corrected the imports in the script
    * used sed to remove this line, it is now creating a temp file without the line which is given to the converter.

I have personally modified the convertSeleniumIDE.bat file but did not test (nor Linux version, I suppose it's ok). I guess this will mostly used on Linux Server and should work anyway.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@886233 13f79535-47bb-0310-9956-ffa450edef68
2009-12-02 18:14:39 +00:00
Jacques Le Roux 98fe02257c A patch from Erwan de FERRIERES "Add the images in docbook help" (https://issues.apache.org/jira/browse/OFBIZ-3280) - OFBIZ-3280
In this new version, I :
    * removed the graphic tag
    * added the mediaobject tag
    * updated the selenium help page


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@886157 13f79535-47bb-0310-9956-ffa450edef68
2009-12-02 14:32:48 +00:00
Hans Bakker b2e6528f36 duplicated and a unused file in the selenium test tools as reported by Erwan de FERRIERES in the mailinglist
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@886084 13f79535-47bb-0310-9956-ffa450edef68
2009-12-02 09:26:42 +00:00
Christian Geisert 8ab47b6571 more eol-styles fixes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@885771 13f79535-47bb-0310-9956-ffa450edef68
2009-12-01 14:37:11 +00:00
Jacques Le Roux ee6851fe83 A patch from Erwan de FERRIERES "Force the locale to english when running selenium tests" (https://issues.apache.org/jira/browse/OFBIZ-3281) - OFBIZ-3281
When running a seleniumXML test, the locale used should be English as the buttons or links are defined in English in the test files. 
Adding the language choice before logging in the application will then resolved errors due to a bad localization.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@885752 13f79535-47bb-0310-9956-ffa450edef68
2009-12-01 12:17:58 +00:00
Jacques Le Roux f0ba7b0e6f A slightly modified patch from Erwan de FERRIERES "Add the images in docbook help" (https://issues.apache.org/jira/browse/OFBIZ-3280) - OFBIZ-3280
this patch will allow to diplay images in the help system.
The help images will be located in framework/images/webapp/images/help (one is included in this issue)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@885748 13f79535-47bb-0310-9956-ffa450edef68
2009-12-01 12:03:51 +00:00
Jacques Le Roux 15b7cd6582 Fix an issue in r885112
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@885115 13f79535-47bb-0310-9956-ffa450edef68
2009-11-28 17:17:48 +00:00
Jacques Le Roux 47b0eff762 More uses of is(Not)Empty
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@885112 13f79535-47bb-0310-9956-ffa450edef68
2009-11-28 16:27:42 +00:00
Jacques Le Roux 569a4afeea Some cleaning related to isEmpty
* remove duplicate ()
* remove casts no longer needed

I'm doing these last tasks around isEmpty and isNotEmpty mostly to be sure that nothing has slipped in. Despite I have been very careful, I prefer double check.

+ one typo in ofbizSelenium help (not sure this file is used yet though, seems to be missing some parts which are commented out, for now I guess)



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@885093 13f79535-47bb-0310-9956-ffa450edef68
2009-11-28 14:08:16 +00:00
Jacques Le Roux d5d543b178 Fix r883508
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883517 13f79535-47bb-0310-9956-ffa450edef68
2009-11-23 22:02:49 +00:00
Jacques Le Roux e839974fe7 Use UtilValidate.isEmpty methods instead of (obj == null) || (obj.length == 0)
Complete r883507


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883508 13f79535-47bb-0310-9956-ffa450edef68
2009-11-23 21:48:18 +00:00
Jacques Le Roux 7c92156d1c Some other fixes in help files
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883333 13f79535-47bb-0310-9956-ffa450edef68
2009-11-23 13:15:09 +00:00
Jacques Le Roux 49b2961e9c Fix few things in help files
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883329 13f79535-47bb-0310-9956-ffa450edef68
2009-11-23 13:02:53 +00:00
Scott Gray 24b64728fe Throw a ContainerException if any tests are unsuccessful during a test run and have the run-tests target fail if that is the case
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@882995 13f79535-47bb-0310-9956-ffa450edef68
2009-11-21 21:20:50 +00:00
Jacques Le Roux 65601eeccd A patch from Abdullah Shaikh "SagePay payment gateway integrated" (https://issues.apache.org/jira/browse/OFBIZ-3180) - OFBIZ-3180
SagePay payment gateway integrated. All the gateway parameters are configurable using the Payment gateway configuration, also the transaction types that are available in sagepay are configurable.

I moved the httpclient httpcore jars to base/lib (also new jcip-annotations-1.0.jar)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@882103 13f79535-47bb-0310-9956-ffa450edef68
2009-11-19 11:01:29 +00:00
Scott Gray b9b0a55b55 When possible log the actual test case name, makes debugging a lot easier
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@882060 13f79535-47bb-0310-9956-ffa450edef68
2009-11-19 07:09:18 +00:00
Jacques Le Roux 63b509222b A patch from Marc Morin "Resolve java warnings exposed in Eclipse : framework - testtools" (https://issues.apache.org/jira/browse/OFBIZ-3119) - OFBIZ-3119
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@832912 13f79535-47bb-0310-9956-ffa450edef68
2009-11-04 23:44:18 +00:00
Jacques Le Roux 4f42d6f76e A patch from Erwan de FERRIERES "Wrong dtd call in a doocbook help file" (https://issues.apache.org/jira/browse/OFBIZ-3089) - OFBIZ-3089
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@829743 13f79535-47bb-0310-9956-ffa450edef68
2009-10-26 09:56:21 +00:00
Adrian Crum 9ee18d37c5 Updated client code to use the new Delegator factory method.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@823633 13f79535-47bb-0310-9956-ffa450edef68
2009-10-09 17:44:24 +00:00
Hans Bakker 682a5ab55b add a new chapter for testtools in the apache technical document
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@822639 13f79535-47bb-0310-9956-ffa450edef68
2009-10-07 10:03:29 +00:00
Hans Bakker 23b160661a paging on testsuites in selenium test corrected
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821731 13f79535-47bb-0310-9956-ffa450edef68
2009-10-05 10:00:45 +00:00
Adrian Crum 7fa08f9079 Replaced GenericDelegator.getGenericDelegator(...) calls with new factory method.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821649 13f79535-47bb-0310-9956-ffa450edef68
2009-10-05 01:53:50 +00:00
Adrian Crum a4d68934c9 Converted GenericDelegator concrete class references to Delegator interface references.
This commit requires ant clean. Also, external libraries that reference GenericDelegator will need to be updated.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821643 13f79535-47bb-0310-9956-ffa450edef68
2009-10-05 00:08:27 +00:00
Hans Bakker d8de376af1 patch supplied in OFBIZ-2964 by Brett palmer
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@819863 13f79535-47bb-0310-9956-ffa450edef68
2009-09-29 08:57:00 +00:00
Hans Bakker 0fdf9568c8 added webtools/selenium to the help and corrected some problems
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@818733 13f79535-47bb-0310-9956-ffa450edef68
2009-09-25 06:31:20 +00:00
Hans Bakker dd9ae86426 added another level in the accounting help data, added info and reorganized a bit, also fixed the problem with the selenium info which did not load
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@817524 13f79535-47bb-0310-9956-ffa450edef68
2009-09-22 07:39:53 +00:00
Hans Bakker 77fc9fefef added a selenium option to webtools which partially tests if all settings have been done and will now automatically download the selenium server. Sponsored by Antwebsystems, programmed by employee Gan
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@817493 13f79535-47bb-0310-9956-ffa450edef68
2009-09-22 04:00:22 +00:00
Adrian Crum 74ea95889c Reverted rev 802567.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@812692 13f79535-47bb-0310-9956-ffa450edef68
2009-09-08 20:56:14 +00:00
Adam Heath 9e9553f1a0 Generics, enhanced-for, similiar changes to the other java 1.5
patches.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@812320 13f79535-47bb-0310-9956-ffa450edef68
2009-09-08 02:22:05 +00:00
Adam Heath 8c6a2a7461 These are not executable.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@811565 13f79535-47bb-0310-9956-ffa450edef68
2009-09-04 21:50:15 +00:00
Adrian Crum dbbab57c8a Fixed a problem in testtools - reported by Jacques on the mailing list.
Someone familiar with Selenium will have to figure out a way to get it to use the jar in build/lib.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@805642 13f79535-47bb-0310-9956-ffa450edef68
2009-08-19 00:40:42 +00:00
Jacques Le Roux 7befd1d25e no tabs but 4 spaces in code files (*.ftl, *.gro*, *.java, *.xml)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@804935 13f79535-47bb-0310-9956-ffa450edef68
2009-08-17 11:01:25 +00:00
Jacques Le Roux 4c442ee379 Some fusiness
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@804895 13f79535-47bb-0310-9956-ffa450edef68
2009-08-17 08:20:38 +00:00
Hans Bakker 2d51096b6d Excellent contribution from Brett G. Palmer in issue: OFBIZ-2116
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@804074 13f79535-47bb-0310-9956-ffa450edef68
2009-08-14 04:22:27 +00:00
Adrian Crum 6786aa4dbc Refactored GenericDelegator:
1. Converted GenericDelegator to an interface. We already have DelegatorInterface, but it isn't being used anywhere. Removed DelegatorInterface.java.

2. Extracted the static, cached data from the GenericDelegator implementation and put it in its own class - DelegatorData. The GenericDelegator implementation holds a reference to the DelegatorData instance. This makes it possible to have per-thread instances of GenericDelegator.

3. Replaced the ThreadLocal variables with regular variables. ThreadLocal variables are no longer needed. Client code doesn't need to be concerned with pushing and popping the GenericDelegator state.

This commit paves the way for the forthcoming ExecutionContext.

User modifications will have to replace GenericDelegator.getGenericDelegator(...) with DelegatorFactory.getGenericDelegator(...). Also, replace the push code with the new setXxx methods, and remove the pop code. If modifications used DelegatorInterface, replace that with GenericDelegator.

Aside from those changes, this commit is backwards compatible.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@802567 13f79535-47bb-0310-9956-ffa450edef68
2009-08-09 18:04:26 +00:00
Scott Gray dec24b29f2 Sorry for the big commit, got a bit carried away.
Added override and deprecated annotations wherever they were missing
Removed the use of any deprecated classes/methods (except OutputFormat in UtilXml)
A few other random generics and misc. cleanups

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@791212 13f79535-47bb-0310-9956-ffa450edef68
2009-07-05 10:01:19 +00:00
Adam Heath dd51c0108b Add a simple initCause helper method.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@789400 13f79535-47bb-0310-9956-ffa450edef68
2009-06-29 18:13:19 +00:00
Scott Gray 2bf7a5d9ab Add the test suite name to the log output, otherwise it isn't very clear which test suite's results are being displayed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@772560 13f79535-47bb-0310-9956-ffa450edef68
2009-05-07 09:04:08 +00:00
Scott Gray 2f0f45e927 Don't throw an exception if the test definitions aren't found, just log an error and continue with the rest of the tests
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@772475 13f79535-47bb-0310-9956-ffa450edef68
2009-05-07 00:20:20 +00:00