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

Examples of net.sourceforge.cruisecontrol.gui.configuration.tree.nodes.RootNode


        "</modificationset></project>" +
        "</cruisecontrol>",
        "Proj1",
        "Proj2");
    TreeModel model = tree.getModel();
    RootNode root = (RootNode) model.getRoot();
    ProjectNode proj = (ProjectNode) root.getChildAt(0);
    this.testNode = (BasicNode) proj.getChildAt(0);
  }
View Full Code Here


        "  </modificationset>" +
        "  <bootstrappers />" +
        "</project>" +
        "</cruisecontrol>",
        "Proj");
    RootNode rootNode = (RootNode) tree.getModel().getRoot();
    testNode = (ProjectNode) rootNode.getChildAt(0);
  }
View Full Code Here

    tree.add(al.getPopup());
  }

  public void testScheduleElements() {
    TreeModel model = tree.getModel();
    RootNode root = (RootNode) model.getRoot();
   
    ProjectNode proj1 = (ProjectNode) root.getChildAt(0);
           
    assertFalse(proj1.isLeaf());
    assertEquals(6, proj1.getChildCount());
   
    BasicNode schedule = (BasicNode) proj1.getChildAt(0);
View Full Code Here

    }
  }
 
  public void testListenerElement() {
    TreeModel model = tree.getModel();
    RootNode root = (RootNode) model.getRoot();
   
    ProjectNode proj1 = (ProjectNode) root.getChildAt(0);
           
    assertFalse(proj1.isLeaf());
    assertEquals(6, proj1.getChildCount());
   
    BasicNode listeners = (BasicNode) proj1.getChildAt(1);
View Full Code Here

    }
  }

  public void testBootstrapperElement() {
    TreeModel model = tree.getModel();
    RootNode root = (RootNode) model.getRoot();
   
    ProjectNode proj1 = (ProjectNode) root.getChildAt(0);
           
    assertFalse(proj1.isLeaf());
    assertEquals(6, proj1.getChildCount());
   
    BasicNode bootstrapper = (BasicNode) proj1.getChildAt(2);
View Full Code Here

    }
  }

  public void testModificationSetElement() {
    TreeModel model = tree.getModel();
    RootNode root = (RootNode) model.getRoot();
   
    ProjectNode proj1 = (ProjectNode) root.getChildAt(0);
           
    assertFalse(proj1.isLeaf());
    assertEquals(6, proj1.getChildCount());
   
    BasicNode modificationset = (BasicNode) proj1.getChildAt(3);
View Full Code Here

    }
  }

  public void testLogElement() {
    TreeModel model = tree.getModel();
    RootNode root = (RootNode) model.getRoot();
   
    ProjectNode proj1 = (ProjectNode) root.getChildAt(0);
           
    assertFalse(proj1.isLeaf());
    assertEquals(6, proj1.getChildCount());
   
    BasicNode log = (BasicNode) proj1.getChildAt(4);
View Full Code Here

    }
  }

  public void testPublishersElement() {
    TreeModel model = tree.getModel();
    RootNode root = (RootNode) model.getRoot();
   
    ProjectNode proj1 = (ProjectNode) root.getChildAt(0);
           
    assertFalse(proj1.isLeaf());
    assertEquals(6, proj1.getChildCount());
   
    BasicNode publishers = (BasicNode) proj1.getChildAt(5);
View Full Code Here

    ConfigTree tree = ConfigTreeUtils.makeTree(
        "<cruisecontrol>" +
        "<bad><worse /></bad>" +
        "</cruisecontrol>");
    TreeModel model = tree.getModel();
    RootNode root = (RootNode) model.getRoot();
   
    // There should be an UnrecognizedNode generated by the "bad"
    // tag above.
    assertEquals(1, root.getChildCount());
    UnrecognizedNode child = (UnrecognizedNode) root.getChildAt(0);
    assertTrue(child.isLeaf());
    assertEquals("bad", child.getName());
    assertTrue(child.getHtmlDocumentation().startsWith("<h2>Error</h2>"));
   
    // Try to expand the child node. This should fail, since the internals of
View Full Code Here

        "</modificationset></project>" +
        "</cruisecontrol>",
        "Proj1",
        "Proj2");
    TreeModel model = tree.getModel();
    RootNode root = (RootNode) model.getRoot();
   
    // Check for 2 project nodes.
    assertEquals(2, root.getChildCount());
    ProjectNode proj1 = (ProjectNode) root.getChildAt(0);
    ProjectNode proj2 = (ProjectNode) root.getChildAt(1);
   
    assertEquals("Proj1", proj1.getName());
    assertEquals("Proj1", proj1.getAttributeValue("name"));
   
    assertEquals("Proj2", proj2.getName());
View Full Code Here

TOP

Related Classes of net.sourceforge.cruisecontrol.gui.configuration.tree.nodes.RootNode

Copyright © 2018 www.massapicom. 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.