Re: [picocontainer-dev] Simple failing test case for trunk
Paul Hammant <[email protected]>
| Newsgroups | gmane.comp.java.picocontainer.devel |
|---|---|
| Message-ID | <[email protected]> |
patched - my fault I think.
- Paul
On Nov 29, 2007, at 1:35 AM, Konstantin Priblouda wrote:
> Hi all,
> Just discovered ( while hacking in branch )
> that this simple test case fails miserably in trunk:
> -------------%<------------
> public void testThatStringIsAddedOnlyOnce() {
> MutablePicoContainer container =
> createPicoContainer(null);
>
> container.addComponent("foo bar");
>
> assertEquals(1,container.getComponentAdapters().size());
> }
> ---------------%<--------------
>
> Is this intendet behavour to add string value twice?
> ( first string/string , then String.class/string )
>
> Fix is easy though:
> DPC @ 336 - convert to return statement.
> and does not break available tests.
> Shall I commit it? Or do I miss something important?
>
>
>
> \
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email