Package org.tinyuml.model

Examples of org.tinyuml.model.UmlPackage


  /**
   * Tests the setter methods.
   */
  public void testSetters() {
    UmlPackage pkg = UmlPackage.getPrototype();
    assertEquals(null, pkg.getName());
  }
View Full Code Here


  /**
   * Tests the setter methods.
   */
  public void testSetters() {
    UmlPackage pkg = UmlPackage.getInstance();
    assertEquals(null, pkg.getName());
  }
View Full Code Here

 
  /**
   * Tests UmlPackage creation.
   */
  public void testCreatePackage() {
    UmlPackage pkg1 = (UmlPackage) factory.create(ElementType.PACKAGE);
    assertNotNull(pkg1);
    assertTrue(umlModel.contains(pkg1));
  }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public PackageElement createPackage() {
    UmlPackage pkg = (UmlPackage)
      modelElementFactory.create(ElementType.PACKAGE);
    pkg.setName("Package 1");
    PackageElement pkgElem = createPackage(pkg);
    pkgElem.addNodeChangeListener(diagram);
    return pkgElem;
  }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public PackageElement createPackage() {
    UmlPackage pkg = (UmlPackage)
      modelElementFactory.create(ElementType.PACKAGE);
    pkg.setName("Package 1");
    PackageElement pkgElem = createPackage(pkg);
    pkgElem.addNodeChangeListener(diagram);
    return pkgElem;
  }
View Full Code Here

  /**
   * Tests the basic setter methods.
   */
  public void testBasicSetters() {
    UmlPackage pkg = UmlPackage.getInstance();
    pkg.setName("mypackage");
    PackageElement shape = new PackageElement(pkg);
    assertEquals("mypackage", shape.getLabelText());
    assertEquals(pkg, shape.getModelElement());
   
    // sets the name
    shape.setLabelText("yourpackage");
    assertEquals("yourpackage", pkg.getName());
    assertEquals("yourpackage", shape.getLabelText());
  }
View Full Code Here

  /**
   * Tests the basic setter methods.
   */
  public void testBasicSetters() {
    UmlPackage pkg = UmlPackage.getInstance();
    pkg.setName("mypackage");
    PackageElement shape = new PackageElement(pkg);
    assertEquals("mypackage", shape.getLabelText());
    assertEquals(pkg, shape.getModelElement());
   
    // sets the name
    shape.setLabelText("yourpackage");
    assertEquals("yourpackage", pkg.getName());
    assertEquals("yourpackage", shape.getLabelText());
  }
View Full Code Here

  /**
   * Tests the basic setter methods.
   */
  public void testBasicSetters() {
    UmlPackage pkg = UmlPackage.getInstance();
    pkg.setName("mypackage");
    PackageElement shape = new PackageElement(pkg);
    assertEquals("mypackage", shape.getLabelText());
    assertEquals(pkg, shape.getModelElement());
   
    // sets the name
    shape.setLabelText("yourpackage");
    assertEquals("yourpackage", pkg.getName());
    assertEquals("yourpackage", shape.getLabelText());
  }
View Full Code Here

 
  /**
   * Tests the basic setter methods.
   */
  public void testBasicSetters() {
    UmlPackage pkg = UmlPackage.getInstance();
    pkg.setName("mypackage");
    PackageElement shape = new PackageElement(pkg);
    assertEquals("mypackage", shape.getName());
    assertEquals(pkg, shape.getModelElement());
   
    // sets the name
    shape.setName("yourpackage");
    assertEquals("yourpackage", shape.getName());
    assertEquals("yourpackage", pkg.getName());
    assertEquals("yourpackage", shape.getLabelText());
  }
View Full Code Here

  /**
   * Tests the setter methods.
   */
  public void testSetters() {
    UmlPackage pkg = UmlPackage.getPrototype();
    assertEquals(null, pkg.getName());
  }
View Full Code Here

TOP

Related Classes of org.tinyuml.model.UmlPackage

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.