@@ -0,0 +1,854 @@
+import org.testng.annotations.AfterMethod;%0Aimport org.testng.annotations.BeforeMethod;%0Aimport org.testng.annotations.Test;%0A%0Aimport static org.testng.Assert.*;%0A%0A/**%0A * Created by hajarboulhdir on 02/10/2016.%0A */%0Apublic class Point2DTest %7B%0A    Point2D p;%0A    @BeforeMethod%0A    public void setUp() throws Exception %7B%0A        p=new Point2D(0.0,0.0);%0A    %7D%0A%0A    @AfterMethod%0A    public void tearDown() throws Exception %7B%0A%0A    %7D%0A%0A    @Test%0A    public void testTranslate() throws Exception %7B%0A        p.translate(2, 3);%0A        assertEquals(p.getX(), 2.0);%0A        assertEquals(p.getY(), 3.0);%0A    %7D%0A%0A    @Test%0A    public void testIsOrigin() throws Exception %7B%0A        assertEquals(p.isOrigin(),true);%0A    %7D%0A%0A    @Test%0A    public void testDistance() throws Exception %7B%0A        p=new Point2D(2.0,2.0);%0A        assertEquals(p.distance(p),Math.sqrt(8.0));%0A    %7D%0A%0A%0A%7D

Add Point2DTest, the test related to Point2D class.