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
Adam Heath
2ec0d94197
Another generics fix.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@771125 13f79535-47bb-0310-9956-ffa450edef68
2009-05-03 20:36:13 +00:00
Scott Gray
4049b07769
A little documentation
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770905 13f79535-47bb-0310-9956-ffa450edef68
2009-05-02 06:57:30 +00:00
Scott Gray
7531687fdd
OFBIZ-2259: Implemented test data rollback per test-suite using the GenericDelegator
...
Provides the following benefits:
1. Test data independence per component suite
2. Ability to run tests repeatedly without reloading the database
3. Continued database independence for the testing tools
4. The possibility of future improvements for controlling when data is rolled back (per unit test, group of unit tests within a suite or
even tree structured tests where data is partially rolled back before continuing)
5. The future possibility to export data changes resulting from a test run
6. The future possibility to verify a test result automatically based on the output of #4
The rollback currently doesn't catch changes resulting from async service calls and also doesn't rollback changes to SequenceValueItem
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@765057 13f79535-47bb-0310-9956-ffa450edef68
2009-04-15 06:01:36 +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
Adam Heath
5d28d2dfcf
Fix lines that *only* have whitespace.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@759242 13f79535-47bb-0310-9956-ffa450edef68
2009-03-27 16:58:28 +00:00
Adam Heath
fcaca96e34
Fix purely empty whitespace lines, and remove trailing whitespace.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@757079 13f79535-47bb-0310-9956-ffa450edef68
2009-03-21 23:25:15 +00:00
Adam Heath
73edfa7c96
Change implementation to be based on suite-name.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@750342 13f79535-47bb-0310-9956-ffa450edef68
2009-03-05 06:54:41 +00:00
Adam Heath
35b209c771
Add support for limiting the test run based on suite-name.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@750341 13f79535-47bb-0310-9956-ffa450edef68
2009-03-05 06:52:40 +00:00
Adam Heath
5c702ec750
Support text and xml output.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@750322 13f79535-47bb-0310-9956-ffa450edef68
2009-03-05 05:51:43 +00:00
Adam Heath
84795ddd31
Add a <test-group> element, that is a sibling of <test-case>; this
...
element can take a list of child test definitions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@750296 13f79535-47bb-0310-9956-ffa450edef68
2009-03-05 02:40:06 +00:00
Adam Heath
867799286a
Container that prints out the test cases that are available.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@750089 13f79535-47bb-0310-9956-ffa450edef68
2009-03-04 18:02:07 +00:00
Adam Heath
974d40665b
Set the counts on the run junit ant helper, so that the document
...
element has the correct values(was always 0 before).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@750049 13f79535-47bb-0310-9956-ffa450edef68
2009-03-04 15:27:33 +00:00
Adam Heath
e410552cc9
No longer *copy* the extra support files into the classes dir;
...
instead, just add them straight to the final jar.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685934 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 15:08:14 +00:00
Adam Heath
2fdd964c9d
More generics.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@682060 13f79535-47bb-0310-9956-ffa450edef68
2008-08-02 21:39:20 +00:00
Adam Heath
b6a1ae5e5e
Another minor optimization; no longer need to specify classpathref in
...
all the build.xml files.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@681935 13f79535-47bb-0310-9956-ffa450edef68
2008-08-02 03:41:46 +00:00
Adam Heath
18391f98a9
The build.xml files are now much smaller and simpler; they reuse a
...
few global definitions. 1585 lines removed.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@672657 13f79535-47bb-0310-9956-ffa450edef68
2008-06-29 18:39:36 +00:00
Scott Gray
463d79858f
Running a simple method bombs if you don't pass in a locale.
...
The other option was to get the default locale if one wasn't passed in when creating the MethodContext but I don't know much about that so I took the easy road :-)
On the bright side another one of the unit tests now passes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@600864 13f79535-47bb-0310-9956-ffa450edef68
2007-12-04 10:00:24 +00:00
Si Chen
57497c7c7c
Print exceptions when a unit test fails.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@599939 13f79535-47bb-0310-9956-ffa450edef68
2007-11-30 20:08:47 +00:00
Si Chen
ecd3e70977
Fix problem in unit test framework where the stacktrace is not printed, thus making it very hard to find the source of a test failure due to an Exception.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@595025 13f79535-47bb-0310-9956-ffa450edef68
2007-11-14 19:55:41 +00:00
Jacques Le Roux
ae76370a04
Replace all www.ofbiz.org by ofbiz.apache.org (mostly links to dtds). Note that there are 2 void links :
...
http://ofbiz.apache.org/service/
http://ofbiz.apache.org/cgi-bin/http_test.pl
Those links were useless before also
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586802 13f79535-47bb-0310-9956-ffa450edef68
2007-10-20 21:17:45 +00:00
Andrew Zeneski
0df41168ce
another change to XML output for test cases, now logs each ofbiz test suite in its own file
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@580550 13f79535-47bb-0310-9956-ffa450edef68
2007-09-29 06:43:30 +00:00
Andrew Zeneski
d327438d57
implemented junit xml formatted output to test cases; new options -results=filename default file outputs to runtime/logs/test-junit.xml
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@576686 13f79535-47bb-0310-9956-ffa450edef68
2007-09-18 04:27:14 +00:00
David E. Jones
0b43b8b6d8
Changed entity-xml-assert to entity-xml with an action element to specify either assert or load; note that parsing code still supports old entity-xml-assert
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@572276 13f79535-47bb-0310-9956-ffa450edef68
2007-09-03 10:41:28 +00:00
David E. Jones
225ee63f85
Small change to show more information about exceptions that happen during test execution... kind of helpful when things blow up to know where
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@557528 13f79535-47bb-0310-9956-ffa450edef68
2007-07-19 08:57:37 +00:00
Andrew Zeneski
beed45c130
updated test running to log more details about junit tests, also added new option -case=name-of-case to run just a specifc test-case.
...
java -jar ofbiz.jar -test -component=[componentName] -case=[caseName]
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@548763 13f79535-47bb-0310-9956-ffa450edef68
2007-06-19 15:25:41 +00:00
David E. Jones
07b48643c5
As noted needing to be done by Jacques Le Roux did a search/replace on source=1.4 and changed to 1.5
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@541997 13f79535-47bb-0310-9956-ffa450edef68
2007-05-27 15:55:18 +00:00
David E. Jones
7d70c41c12
Did a big search/replace to change all xsd file refs from www.ofbiz.org to ofbiz.apache.org
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@539504 13f79535-47bb-0310-9956-ffa450edef68
2007-05-18 15:47:14 +00:00
Andrew Zeneski
6a9c476406
changed logging from info to important
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@531545 13f79535-47bb-0310-9956-ffa450edef68
2007-04-23 18:04:04 +00:00
Andrew Zeneski
806b788a33
added log to show the number of test cases in a test file
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@525012 13f79535-47bb-0310-9956-ffa450edef68
2007-04-03 03:28:41 +00:00
Andrew Zeneski
394d1201fa
added option for running just a single component's test suite;
...
java -jar ofbiz.jar -test -component=[componentName]
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@523053 13f79535-47bb-0310-9956-ffa450edef68
2007-03-27 19:56:52 +00:00
David E. Jones
b5a7493883
Cleanup of LocalDispatcher creation through the GenericDispatcher object; consolidates a bunch of code and hopefully simplifies a things; should also more permanently fix the weird problem we were having with the testing services a bit ago
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@516271 13f79535-47bb-0310-9956-ffa450edef68
2007-03-09 02:45:55 +00:00
David E. Jones
4516bbe6dd
Added simple-method-test to call a simple-method as a service, without a service definition; also includes some various fixes including one from Joe in Jira OFBIZ-791
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@516253 13f79535-47bb-0310-9956-ffa450edef68
2007-03-09 01:28:43 +00:00
David E. Jones
821e4438e1
Added startTest and endTest calls, as per Joe's patch in OFBIZ-784
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@515889 13f79535-47bb-0310-9956-ffa450edef68
2007-03-08 02:01:52 +00:00
David E. Jones
175284f620
Appled patches from Joe Eckard for the ServiceTest implementation, and example to use it; Jira #OFBIZ-791; I made a small change to the patch to show the key and value for the error message Map
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@515876 13f79535-47bb-0310-9956-ffa450edef68
2007-03-08 01:21:49 +00:00
David E. Jones
ba9034287d
A couple of refinements based on conversation with Joe about this new implementation
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@515391 13f79535-47bb-0310-9956-ffa450edef68
2007-03-07 00:22:35 +00:00
David E. Jones
bf807aa5a0
Applied patch from Joe Eckard which implements the entity-xml-assert type of test and adds a small example test file for it that just validates against seed data; small change to reorganize, but mostly as-is
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@515340 13f79535-47bb-0310-9956-ffa450edef68
2007-03-06 22:57:38 +00:00