Point { public void set(Point<T> other) { x = other.x; y = other.y; z = other.z; } protected  Point(Point<T> pt); protected  Point(T x, T y, T z); @Override boolean equals(Object obj); void set(Point<T> other); void setX(T x); void setY(T y); void setZ(T z); @Override String toString();  }
@Test public void doublePointSetTest() { DoublePoint temp = new DoublePoint(1.23, 5.34, 234.23); DoublePoint dp = new DoublePoint(); dp.set(temp); PointTest.assertDoublePointFields(dp, 1.23, 5.34, 234.23); }
@Test public void longPointSetTest() { LongPoint temp = new LongPoint(1, 5, 234); LongPoint lp = new LongPoint(); lp.set(temp); PointTest.assertLongPointFields(lp, 1, 5, 234); }