Package org.tinyuml.draw

Examples of org.tinyuml.draw.NullElement.draw()


   * Tests the methods of NullShape.
   */
  public void testMethods() {
    NullElement elem = NullElement.getInstance();
    elem.recalculateSize(drawingContext);
    elem.draw(drawingContext);
    assertFalse(elem.isVisible(new Rectangle(0, 0, 1000, 1000)));
    assertFalse(elem.isVisible(null));
    assertEquals(NullSelection.getInstance(), elem.getSelection(operations));
    assertNull(elem.getLabelAt(1, 2));
  }
View Full Code Here


   */
  public void testMethods() {
    NullElement elem = NullElement.getInstance();
    assertNull(elem.getModelElement());
    elem.recalculateSize(drawingContext);
    elem.draw(drawingContext);
    assertFalse(elem.isVisible(new Rectangle(0, 0, 1000, 1000)));
    assertFalse(elem.isVisible(null));
    assertEquals(NullSelection.getInstance(), elem.getSelection(operations));
    assertNull(elem.getLabelAt(1, 2));
  }
View Full Code Here

   * Tests the methods of NullShape.
   */
  public void testMethods() {
    NullElement elem = NullElement.getInstance();
    elem.recalculateSize(drawingContext);
    elem.draw(drawingContext);
    assertFalse(elem.isVisible(new Rectangle(0, 0, 1000, 1000)));
    assertFalse(elem.isVisible(null));
    assertEquals(NullSelection.getInstance(), elem.getSelection(operations));
    assertNull(elem.getModelElement());
    assertNull(elem.getLabelAt(1, 2));
View Full Code Here

   * Tests the methods of NullShape.
   */
  public void testMethods() {
    NullElement elem = NullElement.getInstance();
    elem.recalculateSize(drawingContext);
    elem.draw(drawingContext);
    elem.setName("somename");
    assertNull(elem.getName());
    assertFalse(elem.isVisible(new Rectangle(0, 0, 1000, 1000)));
    assertFalse(elem.isVisible(null));
    assertEquals(NullSelection.getInstance(), elem.getSelection(operations));
View Full Code Here

   * Tests the methods of NullShape.
   */
  public void testMethods() {
    NullElement elem = NullElement.getInstance();
    elem.recalculateSize(drawingContext);
    elem.draw(drawingContext);
    assertFalse(elem.isVisible(new Rectangle(0, 0, 1000, 1000)));
    assertFalse(elem.isVisible(null));
    assertEquals(NullSelection.getInstance(), elem.getSelection(operations));
    assertNull(elem.getLabelAt(1, 2));
  }
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.