Package org.freeplane.plugin.script.proxy.Proxy

Examples of org.freeplane.plugin.script.proxy.Proxy.Node


    assertEquals("grandchild should be a child of child2 now", child2, grandchild.getParent());
  }

  public void test_Node_moveTo_Node_parentNode_int_position() {
    map = c.newMap();
    final Node root = map.getRoot();
    final Node child1 = root.createChild("child 1");
    final Node child2 = root.createChild("child 2");
    final Node grandchild = child1.createChild("grandchild");
    assertEquals("wrong count of children", 2, root.getChildren().size());
    grandchild.moveTo(root, 1);
    assertEquals("wrong position", child1, root.getChildren().get(0));
    assertEquals("wrong position", grandchild, root.getChildren().get(1));
    assertEquals("wrong position", child2, root.getChildren().get(2));
  }
View Full Code Here


  //   
  //  }
  //
  public void test_Node_setFolded_boolean_folded() {
    createTestMap();
    final Node child = firstChild();
    child.createChild("grandchild");
    child.setFolded(true);
    assertTrue("node should be folded now", child.isFolded());
    child.setFolded(false);
    assertFalse("node should be unfolded again", child.isFolded());
  }
View Full Code Here

TOP

Related Classes of org.freeplane.plugin.script.proxy.Proxy.Node

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.