Package org.tinyuml.umldraw.structure

Examples of org.tinyuml.umldraw.structure.Dependency


 
  /**
   * Simulates dragging.
   */
  public void testDragging() {
    Dependency dependency = (Dependency) Dependency.getPrototype().clone();
    setStartDragExpectations();
    handler.setRelationType(RelationType.DEPENDENCY, (LineConnectMethod)
      mockConnectMethod.proxy());
    handler.mousePressed((EditorMouseEvent) mockEvent.proxy());
    assertTrue(handler.isDragging());
View Full Code Here


    PackageElement source = (PackageElement)
      factory.createNode(ElementType.PACKAGE);
    PackageElement target = (PackageElement)
      factory.createNode(ElementType.PACKAGE);
   
    Dependency conn = (Dependency) factory.createConnection(
      RelationType.DEPENDENCY, source, target);
    assertStdConnectionConditions(conn, source, target);
    Relation relation = (Relation) conn.getModelElement();
    assertFalse(relation.canSetElement1Navigability());
    assertFalse(relation.canSetElement2Navigability());
  }
View Full Code Here

 
  /**
   * Simulates dragging.
   */
  public void testDragging() {
    Dependency dependency = (Dependency) Dependency.getPrototype().clone();
    setStartDragExpectations();
    handler.setRelationType(RelationType.DEPENDENCY, (LineConnectMethod)
      mockConnectMethod.proxy());
    handler.mousePressed((EditorMouseEvent) mockEvent.proxy());
    assertTrue(handler.isDragging());
View Full Code Here

    PackageElement target = factory.createPackage();
   
    mockElementFactory.expects(atLeastOnce()).method("create").
      with(eq(RelationType.DEPENDENCY)).will(returnValue(assoc));
   
    Dependency conn = (Dependency) factory.createDependency(source, target);
    assertEquals(assoc, conn.getModelElement());
    assertEquals(source, conn.getNode1());
    assertEquals(target, conn.getNode2());
    assertNull(conn.getParent());
    assertEquals(1, source.getConnections().size());
    assertEquals(1, target.getConnections().size());
  }
View Full Code Here

    PackageElement source = (PackageElement)
      factory.createNode(ElementType.PACKAGE);
    PackageElement target = (PackageElement)
      factory.createNode(ElementType.PACKAGE);
   
    Dependency conn = (Dependency) factory.createConnection(
      RelationType.DEPENDENCY, source, target);
    assertStdConnectionConditions(conn, source, target);
    Relation relation = (Relation) conn.getModelElement();
    assertFalse(relation.canSetElement1Navigability());
    assertFalse(relation.canSetElement2Navigability());
  }
View Full Code Here

 
  /**
   * Simulates dragging.
   */
  public void testDragging() {
    Dependency dependency = (Dependency) Dependency.getPrototype().clone();
    setStartDragExpectations();
    handler.setRelationType(RelationType.DEPENDENCY, (LineConnectMethod)
      mockConnectMethod.proxy());
    handler.mousePressed((EditorMouseEvent) mockEvent.proxy());
    assertTrue(handler.isDragging());
View Full Code Here

    PackageElement target = factory.createPackage();
   
    //mockElementFactory.expects(atLeastOnce()).method("create").
    //  with(eq(RelationType.DEPENDENCY)).will(returnValue(assoc));
   
    Dependency conn = (Dependency) factory.createConnection(
      RelationType.DEPENDENCY, source, target);
    assertEquals(source, conn.getNode1());
    assertEquals(target, conn.getNode2());
    assertNull(conn.getParent());
    assertEquals(1, source.getConnections().size());
    assertEquals(1, target.getConnections().size());
  }
View Full Code Here

    PackageElement source = (PackageElement)
      factory.createNode(ElementType.PACKAGE);
    PackageElement target = (PackageElement)
      factory.createNode(ElementType.PACKAGE);
   
    Dependency conn = (Dependency) factory.createConnection(
      RelationType.DEPENDENCY, source, target);
    assertStdConnectionConditions(conn, source, target);
    Relation relation = (Relation) conn.getModelElement();
    assertFalse(relation.canSetElement1Navigability());
    assertFalse(relation.canSetElement2Navigability());
  }
View Full Code Here

TOP

Related Classes of org.tinyuml.umldraw.structure.Dependency

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.