Package org.tinyuml.model

Examples of org.tinyuml.model.AbstractUmlModelElement


  /**
   * Tests the initial state.
   */
  public void testInitial() {
    // initial
    UmlModelElement elem = new AbstractUmlModelElement() { };
    assertEquals(0, elem.getReferenceCount());
  }
View Full Code Here


  /**
   * Tests the reference count access methods.
   */
  public void testReferenceCounting() {
    UmlModelElement elem = new AbstractUmlModelElement() { };
   
    elem.incrementReferenceCount();
    elem.incrementReferenceCount();
    assertEquals(2, elem.getReferenceCount());
    elem.decrementReferenceCount();
    assertEquals(1, elem.getReferenceCount());
    elem.decrementReferenceCount();
    elem.decrementReferenceCount();
   
    // can not be less than 0
    assertEquals(0, elem.getReferenceCount());   
  }
View Full Code Here

  /**
   * Tests the initial state.
   */
  public void testInitial() {
    // initial
    UmlModelElement elem = new AbstractUmlModelElement() { };
    assertEquals(0, elem.getReferenceCount());
  }
View Full Code Here

  /**
   * Tests the reference count access methods.
   */
  public void testReferenceCounting() {
    UmlModelElement elem = new AbstractUmlModelElement() { };
   
    elem.incrementReferenceCount();
    elem.incrementReferenceCount();
    assertEquals(2, elem.getReferenceCount());
    elem.decrementReferenceCount();
    assertEquals(1, elem.getReferenceCount());
    elem.decrementReferenceCount();
    elem.decrementReferenceCount();
   
    // can not be less than 0
    assertEquals(0, elem.getReferenceCount());   
  }
View Full Code Here

  /**
   * Tests the initial state.
   */
  public void testInitial() {
    // initial
    UmlModelElement elem = new AbstractUmlModelElement() { };
    assertEquals(0, elem.getReferenceCount());
  }
View Full Code Here

  /**
   * Tests the reference count access methods.
   */
  public void testReferenceCounting() {
    UmlModelElement elem = new AbstractUmlModelElement() { };
   
    elem.incrementReferenceCount();
    elem.incrementReferenceCount();
    assertEquals(2, elem.getReferenceCount());
    elem.decrementReferenceCount();
    assertEquals(1, elem.getReferenceCount());
    elem.decrementReferenceCount();
    elem.decrementReferenceCount();
   
    // can not be less than 0
    assertEquals(0, elem.getReferenceCount());   
  }
View Full Code Here

TOP

Related Classes of org.tinyuml.model.AbstractUmlModelElement

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.