@Test public void testMove() { final BallItem ballItem = new BallItem(); final BallThread ballThread = mock(BallThread.class); ballItem.setTwin(ballThread); ballItem.move(); assertTrue(appender.logContains("move")); verifyNoMoreInteractions(ballThread); assertEquals(1, appender.getLogSize()); }
public void move() { LOGGER.info("move"); }
BallItem extends GameItem { public void move() { LOGGER.info("move"); } }
BallItem extends GameItem { public void move() { LOGGER.info("move"); }  }
BallItem extends GameItem { public void move() { LOGGER.info("move"); }  void setTwin(BallThread twin); @Override void doDraw(); void move(); @Override void click(); }
BallItem extends GameItem { public void move() { LOGGER.info("move"); }  void setTwin(BallThread twin); @Override void doDraw(); void move(); @Override void click();  }