package test; import org.junit.Test; import static org.junit.Assert.*; import model.Model; public class ModelTest { Model model = new Model(); @Test public void testCalcArea() { assertEquals(525, model.calcArea(30, 35), 0); assertEquals(900, model.calcArea(40, 45), 0); } @Test(expected = IllegalArgumentException.class) public void tesztExceptionSzamitTerulet() { model.calcArea(0, 35); } }