[
https://issues.apache.org/jira/browse/VELTOOLS-122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Antonio Petrelli updated VELTOOLS-122:
--------------------------------------
Attachment: velocity-tools-test.diff
This patch modifies the tests to work under Maven 2 and Ant.
Now, resources once loaded directly from a File, are now loaded as resources
and copied into temporary files, then accessed as files. This way most of the
tests were not rewritten, with the exception of resource loading and copying.
Added Commons-IO as a test dependency to ease copying of resources.
The Ant configuration needed some more tricks to make the test succeed.
The ViewToolTests are excluded from Maven tests since it is an integration
test, and it needs more configuration to run a web server and then launch the
test.
> Tests fail under Maven
> ----------------------
>
> Key: VELTOOLS-122
> URL: https://issues.apache.org/jira/browse/VELTOOLS-122
> Project: Velocity Tools
> Issue Type: Bug
> Components: Build
> Affects Versions: 2.0
> Environment: Maven
> Reporter: Antonio Petrelli
> Attachments: velocity-tools-test.diff
>
>
> After VELTOOLS-121 fix, some tests fail under Maven. Here is the list
> Tests in error:
> methodConfigure_ValueParser(org.apache.velocity.tools.generic.XmlToolTests)
> methodToString(org.apache.velocity.tools.generic.XmlToolTests)
> testStringFileEquals(org.apache.velocity.tools.generic.XmlToolTests)
>
> testBrowserSnifferTool(org.apache.velocity.tools.test.blackbox.ViewToolsTests)
> testContextTool(org.apache.velocity.tools.test.blackbox.ViewToolsTests)
> testLinkTool(org.apache.velocity.tools.test.blackbox.ViewToolsTests)
>
> testParameterParserTool(org.apache.velocity.tools.test.blackbox.ViewToolsTests)
> testXmlConfig(org.apache.velocity.tools.test.whitebox.ConfigTests)
> testOldConfig(org.apache.velocity.tools.test.whitebox.ConfigTests)
> testPropsConfig(org.apache.velocity.tools.test.whitebox.ConfigTests)
> testPropsPlusXmlConfig(org.apache.velocity.tools.test.whitebox.ConfigTests)
> org.apache.velocity.tools.test.whitebox.GenericToolsTests
> Tests run: 217, Failures: 0, Errors: 12, Skipped: 0
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]