Package org.tinyuml.umldraw.sequence

Examples of org.tinyuml.umldraw.sequence.LifeLineElement


  /**
   * Tests the clone() method.
   */
  public void testClone() {
    LifeLineElement cloned = (LifeLineElement) lifeline.clone();
    assertNotSame(lifeline, cloned);
    assertNotSame(lifeline.getModelElement(), cloned.getModelElement());
    assertNotSame(lifeline.getMainCompartment(), cloned.getMainCompartment());
    assertTrue(cloned == cloned.getMainCompartment().getParent());
    assertEquals(1, cloned.getMainCompartment().getLabels().size());
    Label label = cloned.getMainCompartment().getLabels().get(0);
    assertTrue(cloned.getMainCompartment() == label.getParent());
    assertTrue(cloned == label.getSource());
  }
View Full Code Here

TOP

Related Classes of org.tinyuml.umldraw.sequence.LifeLineElement

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.