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

Filipe Ferraz (JIRA) jira-events at lists.jboss.org
Tue Jul 23 03:10:26 EDT 2013


    [ https://issues.jboss.org/browse/WFLY-1737?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12791573#comment-12791573 ] 

Filipe Ferraz commented on WFLY-1737:
-------------------------------------

Changing the pe.getKeyValuePair() to pe.getKey() can resolve this bug?
children is a set<String> of names and the pe.getkey() return the name (String) that can be verified if exits in the set
                
> 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
>             Fix For: 8.0.0.Beta1
>
>
> 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