public class Tester{
public static void main(String[] args){
//create a playlist with some songs in it
Playlist jazzList = new Playlist("Jazz Favourites");
jazzList.addSong(new Song("The Girl From Ipanema", "Stan Getz", 5, 22));
jazzList.addSong(new Song("Corcovado", "Carlos Jobim", 2, 27));
jazzList.addSong(new Song("Besame Mucho", "Diana Krall", 6, 39));
jazzList.addSong(new Song("Take Five", "Dave Brubeck", 5, 26));
jazzList.addSong(new Song("The Nearness Of You", "Nora Jones", 3, 07));
jazzList.addSong(new Song("Oye Como Va", "Tito Puente", 3, 10));
jazzList.addSong(new Song("The Shadow Of Your Smile", "Sarah Vaughn", 5, 22));
jazzList.addSong(new Song("A Night In Tunesia", "Dizzy Gillespie", 7, 55));
jazzList.printPlaylist(); //print playlist and summary
//Test find position
System.out.println("\n======================================");
System.out.print("The position of Take Five is: " );
System.out.println(jazzList.findPositionOfSong("Take Five"));
//Test swap song by title
System.out.println("\n======================================");
System.out.println("TEST: swap \"The Girl From Ipanema\" with \"Take Five\" ");
jazzList.swap("The Girl From Ipanema", "Take Five");
jazzList.printPlaylist();
//Test Move song down
//Move the song "Corcovado" down three positions
System.out.println("\n======================================");
System.out.println("TEST: move Corcovado down three positions");
for(int i=0; i<3; i++)
jazzList.moveSongDown("Corcovado");
jazzList.printPlaylist();
} //end main
} //end class Tester