Examples of UmlProperty


Examples of org.tinyuml.model.UmlProperty

    Mock mockListener = mock(UmlModelElementListener.class);
    UmlClass clonedClass = (UmlClass) UmlClass.getPrototype().clone();
    clonedClass.addModelElementListener((UmlModelElementListener)
      mockListener.proxy());
    List<UmlProperty> methodList = new ArrayList<UmlProperty>();
    UmlProperty method1 = (UmlProperty) UmlProperty.getPrototype().clone();
    UmlProperty method2 = (UmlProperty) UmlProperty.getPrototype().clone();
    UmlProperty method3 = (UmlProperty) UmlProperty.getPrototype().clone();
    methodList.add(method1);
    methodList.add(method2);
    methodList.add(method3);
   
    mockListener.expects(once()).method("elementChanged").with(eq(clonedClass));
View Full Code Here

Examples of org.tinyuml.model.UmlProperty

    Mock mockListener = mock(UmlModelElementListener.class);
    UmlClass clonedClass = (UmlClass) UmlClass.getPrototype().clone();
    clonedClass.addModelElementListener((UmlModelElementListener)
      mockListener.proxy());
    List<UmlProperty> attributeList = new ArrayList<UmlProperty>();
    UmlProperty attrib1 = (UmlProperty) UmlProperty.getPrototype().clone();
    UmlProperty attrib2 = (UmlProperty) UmlProperty.getPrototype().clone();
    UmlProperty attrib3 = (UmlProperty) UmlProperty.getPrototype().clone();
    attributeList.add(attrib1);
    attributeList.add(attrib2);
    attributeList.add(attrib3);
   
    mockListener.expects(once()).method("elementChanged").with(eq(clonedClass));
View Full Code Here

Examples of org.tinyuml.model.UmlProperty

  public void testClone() {
    List<UmlProperty> methods = new ArrayList<UmlProperty>();
    List<UmlProperty> attributes = new ArrayList<UmlProperty>();
    List<UmlStereotype> stereotypes = new ArrayList<UmlStereotype>();
    for (int i = 0; i < 3; i++) {
      UmlProperty method = (UmlProperty) UmlProperty.getPrototype().clone();
      method.setName("method" + i);
      methods.add(method);
      UmlProperty attribute = (UmlProperty) UmlProperty.getPrototype().clone();
      attribute.setName("attribute" + i);
      attributes.add(attribute);
      UmlStereotype stereo = (UmlStereotype) UmlStereotype.getPrototype().clone();
      stereo.setName("stereotype" + i);
      stereotypes.add(stereo);
    }
View Full Code Here

Examples of org.tinyuml.model.UmlProperty

 
  /**
   * Tests the setter methods.
   */
  public void testSetters() {
    UmlProperty property = (UmlProperty) UmlProperty.getPrototype().clone();
    property.setName("name");
    assertEquals("name", property.getName());
  }
View Full Code Here

Examples of org.tinyuml.model.UmlProperty

    Mock mockListener = mock(UmlModelElementListener.class);
    UmlClass clonedClass = (UmlClass) UmlClass.getPrototype().clone();
    clonedClass.addModelElementListener((UmlModelElementListener)
      mockListener.proxy());
    List<UmlProperty> methodList = new ArrayList<UmlProperty>();
    UmlProperty method1 = (UmlProperty) UmlProperty.getPrototype().clone();
    UmlProperty method2 = (UmlProperty) UmlProperty.getPrototype().clone();
    UmlProperty method3 = (UmlProperty) UmlProperty.getPrototype().clone();
    methodList.add(method1);
    methodList.add(method2);
    methodList.add(method3);
   
    mockListener.expects(once()).method("elementChanged").with(eq(clonedClass));
View Full Code Here

Examples of org.tinyuml.model.UmlProperty

    Mock mockListener = mock(UmlModelElementListener.class);
    UmlClass clonedClass = (UmlClass) UmlClass.getPrototype().clone();
    clonedClass.addModelElementListener((UmlModelElementListener)
      mockListener.proxy());
    List<UmlProperty> attributeList = new ArrayList<UmlProperty>();
    UmlProperty attrib1 = (UmlProperty) UmlProperty.getPrototype().clone();
    UmlProperty attrib2 = (UmlProperty) UmlProperty.getPrototype().clone();
    UmlProperty attrib3 = (UmlProperty) UmlProperty.getPrototype().clone();
    attributeList.add(attrib1);
    attributeList.add(attrib2);
    attributeList.add(attrib3);
   
    mockListener.expects(once()).method("elementChanged").with(eq(clonedClass));
View Full Code Here

Examples of org.tinyuml.model.UmlProperty

  public void testClone() {
    List<UmlProperty> methods = new ArrayList<UmlProperty>();
    List<UmlProperty> attributes = new ArrayList<UmlProperty>();
    List<UmlStereotype> stereotypes = new ArrayList<UmlStereotype>();
    for (int i = 0; i < 3; i++) {
      UmlProperty method = (UmlProperty) UmlProperty.getPrototype().clone();
      method.setName("method" + i);
      methods.add(method);
      UmlProperty attribute = (UmlProperty) UmlProperty.getPrototype().clone();
      attribute.setName("attribute" + i);
      attributes.add(attribute);
      UmlStereotype stereo = (UmlStereotype) UmlStereotype.getPrototype().clone();
      stereo.setName("stereotype" + i);
      stereotypes.add(stereo);
    }
View Full Code Here

Examples of org.tinyuml.model.UmlProperty

    Mock mockListener = mock(UmlModelElementListener.class);
    UmlClass clonedClass = (UmlClass) UmlClass.getInstance().clone();
    clonedClass.addModelElementListener((UmlModelElementListener)
      mockListener.proxy());
    List<UmlProperty> methodList = new ArrayList<UmlProperty>();
    methodList.add(new UmlProperty("method1"));
    methodList.add(new UmlProperty("method2"));
    methodList.add(new UmlProperty("method3"));
   
    mockListener.expects(once()).method("elementChanged").with(eq(clonedClass));
    clonedClass.setMethods(methodList);
    assertEquals(methodList, clonedClass.getMethods());
  }
View Full Code Here

Examples of org.tinyuml.model.UmlProperty

    Mock mockListener = mock(UmlModelElementListener.class);
    UmlClass clonedClass = (UmlClass) UmlClass.getInstance().clone();
    clonedClass.addModelElementListener((UmlModelElementListener)
      mockListener.proxy());
    List<UmlProperty> attributeList = new ArrayList<UmlProperty>();
    attributeList.add(new UmlProperty("attrib1"));
    attributeList.add(new UmlProperty("attrib2"));
    attributeList.add(new UmlProperty("attrib3"));
   
    mockListener.expects(once()).method("elementChanged").with(eq(clonedClass));
    clonedClass.setAttributes(attributeList);
    assertEquals(attributeList, clonedClass.getAttributes());
  }
View Full Code Here

Examples of org.tinyuml.model.UmlProperty

 
  /**
   * Tests the setter methods.
   */
  public void testSetters() {
    UmlProperty property = new UmlProperty("property");
    property.setName("name");
    assertEquals("name", property.getName());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.