[
https://issues.apache.org/jira/browse/IVY-606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12528766
]
Steve Loughran commented on IVY-606:
------------------------------------
ant-testutils is the stuff before antunit. It is helper code to run junit tests
with an ant project set up in every build; the log gets captured for postmortem
analysis too.
Look in the ant codebase for it under testing; its very handy, as you can write
tests like
public void testBadHost() {
expectBuildExceptionContaining("testBadHost", "unknown host",
StartApplication.ERROR_COULD_NOT_DEPLOY);
assertInLog("Unable to locate IP address of the host:
no-such-hostname");
}
> Call Project.init() in junit tests
> ----------------------------------
>
> Key: IVY-606
> URL: https://issues.apache.org/jira/browse/IVY-606
> Project: Ivy
> Issue Type: Bug
> Reporter: Maarten Coene
>
> Most of the junit tests don't call Project.init() after creating a new Ant
> Project.
> We should fix this:
> {code:java}
> Project project = new Project();
> project.init();
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.