assertEquals(b, roots.get(1).getWorkspace());
assertEquals(c, roots.get(2).getWorkspace());
}
public void testWorkspaceNodeAddChild() {
WorkspaceNode parentNode = makeWorkspaceNode("parent", null);
assertEquals(0, parentNode.getChildCount());
WorkspaceInfo child0 = makeWorkspace("child0", parentNode.getWorkspace());
WorkspaceNode childNode0 = new WorkspaceNode(child0);
parentNode.addChild(childNode0);
assertEquals(1, parentNode.getChildCount());
assertEquals(childNode0, parentNode.getChild(0));
WorkspaceInfo child1 = makeWorkspace("child1", parentNode.getWorkspace());
WorkspaceNode childNode1 = new WorkspaceNode(child1);
parentNode.addChild(childNode1);
assertEquals(2, parentNode.getChildCount());
assertEquals(childNode0, parentNode.getChild(0));
assertEquals(childNode1, parentNode.getChild(1));
}