130131132133134135136137
} @Test public void testSetStartPoint() { area = new Area( 5, 5 ); area.setStartPoint( 0, 0 ); }
143144145146147148149150
} @Test (expected = ArrayIndexOutOfBoundsException.class) public void testSetEndPointOutSizeN() { area = new Area( 5, 5 ); area.setEndPoint( 5, 4 ); }
150151152153154155156157
} @Test (expected = ArrayIndexOutOfBoundsException.class) public void testSetEndPointOutSizeM() { area = new Area( 5, 5 ); area.setEndPoint( 4, 5 ); }
157158159160161162163164
} @Test (expected = ArrayIndexOutOfBoundsException.class) public void testSetEndPointOutSize_m() { area = new Area( 5, 5 ); area.setEndPoint( 4, -1 ); }
164165166167168169170171
} @Test (expected = ArrayIndexOutOfBoundsException.class) public void testSetEndPointOutSize_n() { area = new Area( 5, 5 ); area.setEndPoint( -1, 4 ); }
171172173174175176177178
} @Test public void testSetEndPoint() { area = new Area( 5, 5 ); area.setEndPoint( 0, 0 ); }
184185186187188189190191
} @Test (expected = ArrayIndexOutOfBoundsException.class) public void testCheckEndOutSizeN() { area = new Area( 5, 5 ); area.checkEnd(9, 0); }
192193194195196197198199
@Test (expected = ArrayIndexOutOfBoundsException.class) public void testCheckEndOutSizeM() { area = new Area( 5, 5 ); area.checkEnd(0, 9); }
199200201202203204205206207
} @Test public void testCheckEnd() { area = new Area( 5, 5 ); area.setEndPoint(3, 0); assertTrue(area.checkEnd(5, 2)); }
214215216217218219220221
@Test (expected = ArrayIndexOutOfBoundsException.class) public void testSetValueOutSizeN() { area = new Area( 5, 5 ); area.setValue(9, 5, 1); }