Audios { public void removeAll() { while (!list.isEmpty()) { remove(list.get(0).getMediaLabel()); } } Audios(MediaPlayer player); Audio add(String mediaLabel, int duration); Audio add(String mediaLabel, String mediaTheme1, int duration); Audio add(String mediaLabel, String mediaTheme1, String mediaTheme2, int duration); Audio add(String mediaLabel, String mediaTheme1, String mediaTheme2, String mediaTheme3, int duration); void remove(String mediaLabel); void removeAll();  }
@Test public void removeAllTest() { audios.add("name", 80); audios.add("test", 10); audios.add("test2", 40); assertEquals(3, audios.list.size()); audios.removeAll(); assertEquals(0, audios.list.size()); }