Package net.sourceforge.cruisecontrol.gui.configuration.tree

Examples of net.sourceforge.cruisecontrol.gui.configuration.tree.ConfigTree.expandPath()


   
    // The tree should be empty.
    assertTrue(root.isLeaf());
   
    // Try to expand the node.
    tree.expandPath(new TreePath(root.getPath()));
    assertTrue(root.isLeaf());
  }
 
  public void testUnrecognizedRoot() {
    try {
View Full Code Here


    assertEquals("bad", child.getName());
    assertTrue(child.getHtmlDocumentation().startsWith("<h2>Error</h2>"));
   
    // Try to expand the child node. This should fail, since the internals of
    // unrecognized nodes are not parsed.
    tree.expandPath(new TreePath(child.getPath()));
    assertTrue(child.isLeaf());
  }
 
  public void testBuildProjects() {
    ConfigTree tree = ConfigTreeUtils.makeTree(
View Full Code Here

    // Verify that each project node uses the correct schedule node.
    assertEquals(2, root.getChildCount());
    ProjectNode proj1 = (ProjectNode) root.getChildAt(0);
    ProjectNode proj2 = (ProjectNode) root.getChildAt(1);
   
    tree.expandPath(new TreePath(proj1.getPath()));
    assertEquals(1, proj1.getChildCount());
   
    tree.expandPath(new TreePath(proj2.getPath()));
    assertEquals(1, proj2.getChildCount());
   
View Full Code Here

    ProjectNode proj2 = (ProjectNode) root.getChildAt(1);
   
    tree.expandPath(new TreePath(proj1.getPath()));
    assertEquals(1, proj1.getChildCount());
   
    tree.expandPath(new TreePath(proj2.getPath()));
    assertEquals(1, proj2.getChildCount());
   
    BasicNode schedule1 = (BasicNode) proj1.getChildAt(0);
    BasicNode schedule2 = (BasicNode) proj2.getChildAt(0);
   
View Full Code Here

    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"));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.