Added testing method. Default Events will now be added.

This commit is contained in:
2015-02-24 20:13:04 +01:00
parent 3dafa12ba8
commit 2e4e763ef7
+23 -1
View File
@@ -3,7 +3,29 @@
public class Main {
public static void main(String[] args) {
new Window();
//new Window();
Window w = new Window();
Agenda agn = w.getAgenda();
Artist a1 = new Artist("Coldplay", "Alternative Rock", "null", "A band");
Artist a2 = new Artist("Nirvana", "Alternative Rock", "null", "A band whose lead singer is dead");
Artist a3 = new Artist("Eminem", "Rap", "null", "A very famous rapper");
Stage s1 = new Stage("Rock Stage", "Stage for Rock and Alternative Rock concerts");
Stage s2 = new Stage("Rap Stage", "Stage for Rap concerts");
Event e1 = new Event("Coldplay Live", 2015, 2, 24, 21, 00, 2015, 2, 24, 23, 00, a1, s1, "A concert from a very famous band", 2);
Event e2 = new Event("Coldplay Live", 2015, 2, 25, 20, 00, 2015, 2, 25, 22, 00, a1, s1, "A concert from a very famous band", 1);
Event e3 = new Event("Nirvana in memory", 2015, 2, 24, 16, 30, 2015, 2, 24, 20, 45, a2, s1, "A concert in memory of a once very famous band", 4);
Event e4 = new Event("Epic Rap Battles of History", 2015, 3, 3, 12, 30, 2015, 3, 12, 18, 45, a3, s2, "Rap battle with Eminem and ERP", 3);
agn.addEvent(e1);
agn.addEvent(e2);
agn.addEvent(e3);
agn.addEvent(e4);
agn.fillArtists();
agn.fillStages();
}
}