Re: [picocontainer-dev] question about test case validity
Jörg Schaible <[email protected]>
| Newsgroups | gmane.comp.java.picocontainer.devel |
|---|---|
| Message-ID | <[email protected]> |
Konstantin Priblouda wrote:
> Hi all,
> ( especially those who grok it )
>
> I'm looking and
> o.p.d.UserQuestionTestCase.testMoreWeirdness()
>
> (which is of course failing in my refactoring ;) )
>
> and do not grok what exactly is under test, and what
> is to be achieved there.
>
> Anybode knows more?
This is easy. Any dep is always requiring a specialized version.
You have added the types Disabled, Enabled and NeedsInterfaceX and also told
Pico that the default question for an InterfaceX type is an implementation
of Something.
So the request for a NeedsInterfaceX instancewith the dep to the InterfaceX
is resolved with the type Something, which requests for a Disabled and an
Enabled instance. See? No ambiguity!
- Jörg
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email