Morphing2D implements Shape { @Override public boolean intersects(double x, double y, double w, double h) { throw new InternalError("unimplemented"); } Morphing2D(Shape startShape, Shape endShape); double getMorphing(); void setMorphing(double morph); @Override Rectangle getBounds(); @Override Rectangle2D getBounds2D(); @Override boolean contains(double x, double y); @Override boolean contains(Point2D p); @Override boolean intersects(double x, double y, double w, double h); @Override boolean intersects(Rectangle2D r); @Override boolean contains(double x, double y, double w, double h); @Override boolean contains(Rectangle2D r); @Override PathIterator getPathIterator(AffineTransform at); @Override PathIterator getPathIterator(AffineTransform at, double flatness);  }
@Test public void testIntersects() { try { morph.intersects(new Rectangle(5,5,10,10)); fail("when you implement this method, don't forget to add tests as well"); } catch (InternalError e) { } try { morph.intersects(5,5,10,10); fail("when you implement this method, don't forget to add tests as well"); } catch (InternalError e) { } }