[jboss-jira] [JBoss JIRA] (WFLY-1737) org.jboss.as.model.test.ModelTestUtils String[] is incompatible with expected argument type String

Tomaz Cerar (JIRA) jira-events at lists.jboss.org
Mon Jul 22 16:50:26 EDT 2013


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

Tomaz Cerar reassigned WFLY-1737:
---------------------------------

    Assignee: Tomaz Cerar  (was: Kabir Khan)

    
> org.jboss.as.model.test.ModelTestUtils String[] is incompatible with expected argument type String
> --------------------------------------------------------------------------------------------------
>
>                 Key: WFLY-1737
>                 URL: https://issues.jboss.org/browse/WFLY-1737
>             Project: WildFly
>          Issue Type: Bug
>          Components: Test Suite
>    Affects Versions: 8.0.0.Beta1
>            Reporter: Cheng Fang
>            Assignee: Tomaz Cerar
>
> children is a Set<String>, but pe.getKeyValuePair() is String[], so it will always return false.
> {code}
> } else {
>                 if (children.contains(pe.getKeyValuePair())) {
>                     String name = pe.getValue();
>                     ModelNode value = model.get(pe.getKeyValuePair());
>                     ManagementResourceRegistration sub = rr.getSubModel(PathAddress.pathAddress(pe));
>                     Assert.assertNotNull(getComparePathAsString(stack) + " Child with name '" + name + "' not found", sub);
>                     if (value.isDefined()) {
>                         stack.push(pe);
>                         checkModelAgainstDefinition(value, sub, stack);
>                         stack.pop();
>                     }
>                 }
>             }
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list