@Test public void removeAllTest() { liveVideos.add("name"); liveVideos.add("toto"); liveVideos.add("titi"); assertEquals(3, liveVideos.list.size()); liveVideos.removeAll(); assertEquals(0, liveVideos.list.size()); }
public void removeAll() { while (!list.isEmpty()) { remove(list.get(0).getMediaLabel()); } }
LiveVideos { public void removeAll() { while (!list.isEmpty()) { remove(list.get(0).getMediaLabel()); } } }
LiveVideos { public void removeAll() { while (!list.isEmpty()) { remove(list.get(0).getMediaLabel()); } } LiveVideos(MediaPlayer player); }
LiveVideos { public void removeAll() { while (!list.isEmpty()) { remove(list.get(0).getMediaLabel()); } } LiveVideos(MediaPlayer player); LiveVideo add(String mediaLabel); LiveVideo add(String mediaLabel, String mediaTheme1); LiveVideo add(String mediaLabel, String mediaTheme1, String mediaTheme2); LiveVideo add(String mediaLabel, String mediaTheme1, String mediaTheme2, String mediaTheme3); void remove(String mediaLabel); void removeAll(); }
LiveVideos { public void removeAll() { while (!list.isEmpty()) { remove(list.get(0).getMediaLabel()); } } LiveVideos(MediaPlayer player); LiveVideo add(String mediaLabel); LiveVideo add(String mediaLabel, String mediaTheme1); LiveVideo add(String mediaLabel, String mediaTheme1, String mediaTheme2); LiveVideo add(String mediaLabel, String mediaTheme1, String mediaTheme2, String mediaTheme3); void remove(String mediaLabel); void removeAll();  }