Package horse

Examples of horse.Area


  Area area;

  @Before
  public void setUp() throws Exception
  {
    area = new Area();
  }
View Full Code Here


  }

  @Test
  public void testAreaNull()
  {
    area = new Area();
    assertEquals( area.size(), 0 );
  }
View Full Code Here

  }
 
  @Test
  public void testArea()
  {
    area = new Area( 5, 5 );
    assertEquals( area.size(), 81 );
  }
View Full Code Here

  }
 
  @Test (expected = ArrayIndexOutOfBoundsException.class)
  public void testAreaOutSizeN()
  {
    area = new Area(0,5);
  }
View Full Code Here

  }
 
  @Test (expected = ArrayIndexOutOfBoundsException.class)
  public void testAreaOutSizeM()
  {
    area = new Area( 5, 0 );
  }
View Full Code Here

  }
 
  @Test
  public void testClone()
  {
    Area clone;
   
    area.setSize(3, 3);
    clone = area.clone();
   
    assertEquals( area.size(), clone.size() );
    assertArrayEquals(area.getArray(), clone.getArray());
  }
View Full Code Here

  }
 
  @Test (expected = ArrayIndexOutOfBoundsException.class)
  public void testSetStartPointOutSizeN()
  {
    area = new Area( 5, 5 );
    area.setStartPoint( 5, 4 );
  }
View Full Code Here

  }
 
  @Test (expected = ArrayIndexOutOfBoundsException.class)
  public void testSetStartPointOutSizeM()
  {
    area = new Area( 5, 5 );
    area.setStartPoint( 4, 5 );
  }
View Full Code Here

  }
 
  @Test (expected = ArrayIndexOutOfBoundsException.class)
  public void testSetStartPointOutSize_m()
  {
    area = new Area( 5, 5 );
    area.setStartPoint( 4, -1 );
  }
View Full Code Here

  }
 
  @Test (expected = ArrayIndexOutOfBoundsException.class)
  public void testSetStartPointOutSize_n()
  {
    area = new Area( 5, 5 );
    area.setStartPoint( -1, 4 );
  }
View Full Code Here

TOP

Related Classes of horse.Area

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.