[ 
https://issues.apache.org/jira/browse/IVY-388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12464552
 ] 

Maarten Coene commented on IVY-388:
-----------------------------------

I don't think this is a bug.

The ResolveReport.getDependencies() method returns all dependencies, including 
the evicted ones.
The ConfigurationResolveReport.getDependency() can also return an evicted 
dependency
The ConfigurationResolveReport.getModuleRevisionIds() doesn't return evicted 
dependencies.

So it's perfectly normal that the getDependency() method can return a result 
which is not contained in the getModuleRevisionIds().

Everything works fine if I modify your test into this:

if (!node.isEvicted(conf)) {
        boolean flag1 = report.getConfigurationReport(conf)
                        .getDependency(node.getResolvedId()) != null;
        boolean flag2 = report.getConfigurationReport(conf)
                        .getModuleRevisionIds().contains(node.getResolvedId());
        assertEquals("Inconsistent data for node " + node + " in conf " + conf 
, flag1, flag2);
}

Maarten

> Inconsistency in ConfigurationReport
> ------------------------------------
>
>                 Key: IVY-388
>                 URL: https://issues.apache.org/jira/browse/IVY-388
>             Project: Ivy
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: 1.4.1
>         Environment: all
>            Reporter: John Williams
>            Priority: Minor
>         Attachments: IVY-388-testcase-2.patch, IVY-388-testcase.patch
>
>
> Please see the attached patch which adds a test case.  The patch assumes 
> IVY-383-testcase.patch has been previously applied.  I'm not sure if this is 
> a bug or just a misunderstanding, but it caused me a lot of confusion.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to