package com.example.model;

import junit.framework.TestCase;

/**
 * Created by zonoise on 2016/02/17.
 */
public class PointTest extends TestCase
{
    public void testCompare() throws Exception {
        Point p1 = new Point(1,2);
        Point p2 = new Point(1,2);
        assertEquals(p1,p2);
    }


}

@@ -55,16 +55,68 @@
 tCase;%0A%0A
+import java.util.ArrayList;%0Aimport java.util.List;%0A%0A
 /**%0A * C
@@ -349,11 +349,287 @@
 %0A    %7D%0A%0A
+    public void testContain() %7B%0A        Point p1 = new Point(1,1);%0A        Point p2 = new Point(1,2);%0A        List%3CPoint%3E list =new ArrayList%3CPoint%3E();%0A        list.add(p1);%0A        list.add(p2);%0A        assertEquals(true,%0A                list.contains(new Point(1,1)));%0A    %7D
 %0A%7D%0A

add Point test