You don't need sites
when looking at the xmlConfig
object.
sites
is the root node, so is implied, try:
assert xmlConfig.site.size() == 2
Also, xmlConfig.site
is a instance of NodeChildren
, but you seem to be declaring a return type of GPathResult
And I'm not sure what's missing from the end of your findAll
call, as that should take a Closure, or empty parentheses