String xml =
"<cruisecontrol>" +
"<project name='proj1'><schedule interval='100' /></project>" +
"<project name='proj2'><schedule interval='200' /></project>" +
"</cruisecontrol>";
MockServer server;
try {
server = new MockServer(
xml, rootInfo);
} catch (Exception e) {
throw new RuntimeException(e);
}
server.addProjectInfo("proj1", proj1Info);
server.addProjectInfo("proj2", proj2Info);
// Construct the ConfigTree to be tested.
ConfigTree tree = new ConfigTree(server);
TreeModel model = tree.getModel();
RootNode root = (RootNode) model.getRoot();