Package test.tinyuml.draw

Examples of test.tinyuml.draw.MyCompositeNode


  /**
   * Tests the bring to front method.
   */
  public void testBringToFront() {
    MyCompositeNode child1 = new MyCompositeNode();
    MyCompositeNode child2 = new MyCompositeNode();
    MyCompositeNode child3 = new MyCompositeNode();
    diagram.addChild(child1);
    diagram.addChild(child2);
    diagram.addChild(child3);
    diagram.bringChildToFront(child1);
    assertEquals("child1 should now be at index 2",
View Full Code Here


 
  /**
   * Tests the putToBack() method.
   */
  public void testPutToBack() {
    MyCompositeNode child1 = new MyCompositeNode();
    MyCompositeNode child2 = new MyCompositeNode();
    MyCompositeNode child3 = new MyCompositeNode();
    diagram.addChild(child1);
    diagram.addChild(child2);
    diagram.addChild(child3);
    diagram.putChildToBack(child3);
    assertEquals("child3 should now be at index 0",
View Full Code Here

  /**
   * Tests the bring to front method.
   */
  public void testBringToFront() {
    MyCompositeNode child1 = new MyCompositeNode();
    MyCompositeNode child2 = new MyCompositeNode();
    MyCompositeNode child3 = new MyCompositeNode();
    diagram.addChild(child1);
    diagram.addChild(child2);
    diagram.addChild(child3);
    diagram.bringChildToFront(child1);
    assertEquals("child1 should now be at index 2",
View Full Code Here

 
  /**
   * Tests the putToBack() method.
   */
  public void testPutToBack() {
    MyCompositeNode child1 = new MyCompositeNode();
    MyCompositeNode child2 = new MyCompositeNode();
    MyCompositeNode child3 = new MyCompositeNode();
    diagram.addChild(child1);
    diagram.addChild(child2);
    diagram.addChild(child3);
    diagram.putChildToBack(child3);
    assertEquals("child3 should now be at index 0",
View Full Code Here

  /**
   * Tests the bring to front method.
   */
  public void testBringToFront() {
    MyCompositeNode child1 = new MyCompositeNode();
    MyCompositeNode child2 = new MyCompositeNode();
    MyCompositeNode child3 = new MyCompositeNode();
    diagram.addChild(child1);
    diagram.addChild(child2);
    diagram.addChild(child3);
    diagram.bringChildToFront(child1);
    assertEquals("child1 should now be at index 2",
View Full Code Here

 
  /**
   * Tests the putToBack() method.
   */
  public void testPutToBack() {
    MyCompositeNode child1 = new MyCompositeNode();
    MyCompositeNode child2 = new MyCompositeNode();
    MyCompositeNode child3 = new MyCompositeNode();
    diagram.addChild(child1);
    diagram.addChild(child2);
    diagram.addChild(child3);
    diagram.putChildToBack(child3);
    assertEquals("child3 should now be at index 0",
View Full Code Here

TOP

Related Classes of test.tinyuml.draw.MyCompositeNode

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.