assertEquals("100", schedule1.getAttributeValue("interval"));
assertEquals("200", schedule2.getAttributeValue("interval"));
}
public void testPluginPlugin() {
ConfigTree tree = ConfigTreeUtils.makeTree(
"<cruisecontrol>" +
"<plugin name='a' classname='b' />" +
"<project name='p'><plugin name='c' classname='d' /></project>" +
"</cruisecontrol>",
"p");
TreeModel model = tree.getModel();
RootNode root = (RootNode) model.getRoot();
assertEquals(2, root.getChildCount());
PluginPluginNode pluginA = (PluginPluginNode) root.getChildAt(0);
ProjectNode project = (ProjectNode) root.getChildAt(1);
assertEquals("a", pluginA.getAttributeValue("name"));
assertEquals("b", pluginA.getAttributeValue("classname"));
tree.expandPath(new TreePath(project.getPath()));
assertEquals(1, project.getChildCount());
PluginPluginNode pluginC = (PluginPluginNode) project.getChildAt(0);
assertEquals("c", pluginC.getAttributeValue("name"));
assertEquals("d", pluginC.getAttributeValue("classname"));