package org.mutabilitydetector.demo;

import org.junit.Test;

public class PointTest {
    
    @Test
    public void pointIsImmutable() throws Exception {
        // how to check?
    }

    public static final class Point {
        private final int x;
        private final int y;

        public Point(int x, int y) {
            this.x = x;
            this.y = y;
        }

        public int getX() {
            return x;
        }

        public int getY() {
            return y;
        }
    }
}

@@ -85,16 +85,74 @@
  %7B%0A    %0A
+    // all the other unit tests you undoubtedly have%0A    %0A
     @Tes

Add comment