* Test the navigation to JBoss Cache nodes.
*/
public void testJBossCacheNavigation() throws HtmlElementNotFoundException, IOException, EmbJoprTestException {
if( isJBossConfigWithoutCache() ) return;
NavTreeNode haparNode = ejtt.getNavTree().getNodeByLabel(JBCACHE_HA_PARTITION);
// All expected subnodes:
String[] subnodesNames = new String[]{
SUBNODE_CACHE,
SUBNODE_INTERCEPTOR,
SUBNODE_DATA_CONTAINER,
SUBNODE_RPC_MANAGER,
SUBNODE_REGION_MANAGER,
SUBNODE_TRANSACTION_TABLE
};
// Check whether all expected child nodes are present.
List<String> names = new ArrayList();
CollectionUtils.addAll(names, subnodesNames);
// Remove the names which we find.
haparNode = ejtt.navTree.getNodeByLabel(JBCACHE_HA_PARTITION);
List<NavTreeNode> children = haparNode.getChildren( /*new NodeFinder() {
public HtmlTable getNodeElem(EmbJoprTestToolkit ejtt) throws HtmlElementNotFoundException {
return (HtmlTable) ejtt.navTree.getNodeByLabel(JBCACHE_HA_PARTITION).getElement();
}
}*/);