package introduction.test; import introduction.Point; import junit.framework.TestCase; public class PointTest extends TestCase { private Point point; protected void setUp() throws Exception { point = new Point(); } protected void tearDown() throws Exception { super.tearDown(); } /* * Test method for 'introduction.Point.makeRectangular()' */ public void testMakeRectangular() { point.setRectangular(10.0, 5.0); assertEquals(10.0, point.getX(), Double.POSITIVE_INFINITY); assertEquals(5.0, point.getY(), Double.POSITIVE_INFINITY); } }