incubator-ivy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xavier Hanin (JIRA)" <j...@apache.org>
Subject [jira] Commented: (IVY-606) Call Project.init() in junit tests
Date Wed, 19 Sep 2007 06:04:43 GMT

    [ 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.


Mime
View raw message