[
https://issues.jboss.org/browse/WFLY-1737?page=com.atlassian.jira.plugin....
]
Filipe Ferraz edited comment on WFLY-1737 at 7/23/13 3:12 AM:
--------------------------------------------------------------
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 exists in the set
was (Author: filipeferraz):
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