@Test public void removeAllTest() { videos.add("name", 80); videos.add("chapter", 10); videos.add("chapter2", 40); assertEquals(3, videos.list.size()); videos.removeAll(); assertEquals(0, videos.list.size()); }
public void removeAll() { while (!list.isEmpty()) { remove(list.get(0).getMediaLabel()); } }
Videos { public void removeAll() { while (!list.isEmpty()) { remove(list.get(0).getMediaLabel()); } } }
Videos { public void removeAll() { while (!list.isEmpty()) { remove(list.get(0).getMediaLabel()); } } Videos(MediaPlayer player); }
Videos { public void removeAll() { while (!list.isEmpty()) { remove(list.get(0).getMediaLabel()); } } Videos(MediaPlayer player); Video add(String mediaLabel, int duration); Video add(String mediaLabel, String mediaTheme1, int duration); Video add(String mediaLabel, String mediaTheme1, String mediaTheme2, int duration); Video add(String mediaLabel, String mediaTheme1, String mediaTheme2, String mediaTheme3, int duration); void remove(String mediaLabel); void removeAll(); }
Videos { public void removeAll() { while (!list.isEmpty()) { remove(list.get(0).getMediaLabel()); } } Videos(MediaPlayer player); Video add(String mediaLabel, int duration); Video add(String mediaLabel, String mediaTheme1, int duration); Video add(String mediaLabel, String mediaTheme1, String mediaTheme2, int duration); Video add(String mediaLabel, String mediaTheme1, String mediaTheme2, String mediaTheme3, int duration); void remove(String mediaLabel); void removeAll();  }