assertTrue("IsExpanded must be " + !expected,node.isExpanded() == !expected);
}
}
private void assertSelectOrDeselect(Tree tree, String[] nodeIds, boolean expected) {
MockContext context = (MockContext) MockContext.getThreadLocalContext();
for(int i = 0; i < nodeIds.length; i++) {
TreeNode node = tree.find(nodeIds[i]);
assertTrue("IsExpanded must be " + expected,node.isSelected() == expected);
}
tree.onProcess();
context.fireActionEventsAndClearRegistry();
for(int i = 0; i < nodeIds.length; i++) {
TreeNode node = tree.find(nodeIds[i]);
assertTrue("IsExpanded must be " + !expected,node.isSelected() == !expected);
}
}