[shrinkwrap-issues] [JBoss JIRA] Updated: (SHRINKDESC-84) Node.get(Patterns) matches recursive down the whole tree

Aslak Knutsen (JIRA) jira-events at lists.jboss.org
Thu Sep 1 11:29:26 EDT 2011


     [ https://issues.jboss.org/browse/SHRINKDESC-84?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aslak Knutsen updated SHRINKDESC-84:
------------------------------------

    Component/s: spi


> Node.get(Patterns) matches recursive down the whole tree
> --------------------------------------------------------
>
>                 Key: SHRINKDESC-84
>                 URL: https://issues.jboss.org/browse/SHRINKDESC-84
>             Project: ShrinkWrap Descriptors
>          Issue Type: Bug
>          Components: spi
>    Affects Versions: 1.1.0-alpha-3
>            Reporter: Aslak Knutsen
>            Priority: Critical
>             Fix For: 1.1.0-alpha-4
>
>
> Node.get should only try to match the first level.
> {code}
>    @Test
>    public void shouldNotMatchAChildsChildrenOnQuery() 
>    {
>       // /root/child1/child2
>       Node root = new Node(ROOT_NAME)
>             .createChild(CHILD_1_NAME)
>                .createChild(CHILD_2_NAME).getRoot();
>       // this Assert fails
>       Assert.assertNull(root.get(CHILD_2_NAME));
>    }
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the shrinkwrap-issues mailing list