
|
If you were logged in you would be able to see more operations.
|
|
|
WebWork
Created: 23/Sep/07 09:25 AM
Updated: 23/Sep/07 11:46 AM
|
|
| Component/s: |
None
|
| Affects Version/s: |
2.2.7
|
| Fix Version/s: |
2.2.7
|
|
|
Since WW uses HashMaps internally to generate URLs,
resulting strings are not consistent between different javaversions or
OS versions ( as said in sun javadoc - order of entries is not given
and may change without notice )
Thus all the tests where string is used to compare result, are subject to
random test falures for different users.
Provided patch fices test cases to use URL helpers to generate expected strings ,
ensuring consistent ordering.
Another issue is renderng of XML documents which also may slightly change.
To overcome problem with String comparisos, I employed XMLunit
( used with a great success by xdoclet-2 plugins to test generated xml files )
Patch is attached.
|
|
Description
|
Since WW uses HashMaps internally to generate URLs,
resulting strings are not consistent between different javaversions or
OS versions ( as said in sun javadoc - order of entries is not given
and may change without notice )
Thus all the tests where string is used to compare result, are subject to
random test falures for different users.
Provided patch fices test cases to use URL helpers to generate expected strings ,
ensuring consistent ordering.
Another issue is renderng of XML documents which also may slightly change.
To overcome problem with String comparisos, I employed XMLunit
( used with a great success by xdoclet-2 plugins to test generated xml files )
Patch is attached.
|
Show » |
|