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

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


    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
    // unrecognized nodes are not parsed.
    tree.expandPath(new TreePath(child.getPath()));
    assertTrue(child.isLeaf());
  }
View Full Code Here

TOP

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

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.