@SuppressWarnings("unchecked") @Test public void drawsWide() throws Exception { arrow.paint(graphics); InOrder inOrder = inOrder(graphics); inOrder.verify(graphics).setStrokeWidth(new Width(6)); inOrder.verify(graphics).drawPolyline(any(List.class)); }
@SuppressWarnings("unchecked") @Test public void drawsBlack() throws Exception { arrow.paint(graphics); InOrder inOrder = inOrder(graphics); inOrder.verify(graphics).setColor(RGBColor.Black); inOrder.verify(graphics).drawPolyline(any(List.class)); }
@Test public void movesPoints() throws Exception { arrow.moveBy(1, 2); arrow.paint(graphics); verifyPolylineWith(new Coordinate(18, 8)); }
@Test public void hasDotAtBottom() throws Exception { arrow.paint(graphics); verify(graphics).fill(new TransformedShape(new Circle(17, 6, 12))); }
@Test public void connectsDots() throws Exception { arrow.paint(graphics); verifyPolylineWith(new Coordinate(17, 6)); }