You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-commits@incubator.apache.org by "Xavier Hanin (JIRA)" <ji...@apache.org> on 2007/09/19 06:04:43 UTC
[jira] Commented: (IVY-606) Call Project.init() in junit tests
[ https://issues.apache.org/jira/browse/IVY-606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12528668 ]
Xavier Hanin commented on IVY-606:
----------------------------------
If we have to do this everywhere, maybe a good idea would be to add a AntTestHelper class with:
{noformat}
public static Project newProject() {
Project project = new Project();
project.init();
return project;
}
{noformat}
This would make test code cleaner and would help if we later figure out that we need something else for initialization.
> 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.