@Test public void testPlay() { player.play(); assertEquals("Playing Hello by Adele.", log.getLog()); }
public void play() { cd.play(); }
CDPlayer implements MediaPlayer { public void play() { cd.play(); } }
CDPlayer implements MediaPlayer { public void play() { cd.play(); } @Autowired  CDPlayer(CompactDisc cd); }
CDPlayer implements MediaPlayer { public void play() { cd.play(); } @Autowired  CDPlayer(CompactDisc cd); void play(); }
CDPlayer implements MediaPlayer { public void play() { cd.play(); } @Autowired  CDPlayer(CompactDisc cd); void play();  }