Package org.tinyuml.draw

Examples of org.tinyuml.draw.NoteElement


  /**
   * Test creating a NoteElement.
   */
  public void testCreateNote() {
    NoteElement node = factory.createNote();
    assertNull(node.getParent());
    assertTrue(node.getNodeChangeListeners().contains(diagram));   
  }
View Full Code Here


  /**
   * Test creating a NoteElement.
   */
  public void testCreateNote() {
    NoteElement node = factory.createNote();
    assertNull(node.getParent());
    assertTrue(node.getNodeChangeListeners().contains(diagram));   
  }
View Full Code Here

   */
  public void testCreateNoteConnection() {
    mockElementFactory.expects(atLeastOnce()).method("create").
      with(eq(ElementType.CLASS)).will(returnValue(clss));
    ClassElement clss = factory.createClass();
    NoteElement note = factory.createNote();
    NoteConnection conn = (NoteConnection)
      factory.createNoteConnection(clss, note);
    assertNull(conn.getModelElement());
    assertEquals(clss, conn.getNode0());
    assertEquals(note, conn.getNode1());
View Full Code Here

TOP

Related Classes of org.tinyuml.draw.NoteElement

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.