From 2e4e763ef781b7180c53a36382244e286b8f8b4d Mon Sep 17 00:00:00 2001 From: Kenneth van Ewijk Date: Tue, 24 Feb 2015 20:13:04 +0100 Subject: [PATCH] Added testing method. Default Events will now be added. --- Main.java | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/Main.java b/Main.java index 864824c..e3164e4 100644 --- a/Main.java +++ b/Main.java @@ -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(); } }