diff --git a/src/main/java/service/PollService.java b/src/main/java/service/PollService.java index fb88ffe..9bf1ffa 100644 --- a/src/main/java/service/PollService.java +++ b/src/main/java/service/PollService.java @@ -40,6 +40,25 @@ public class PollService { Poll poll = new Poll(url,pollChoiceArrayList, question, publishStamp); + pollsArray.add(poll); + + url = "/questions/2"; + question = "What is your favourite Australian animal"; + pollChoice1= new PollChoice(86,"Koala","/questions/2/choices/1"); + pollChoice2= new PollChoice(43,"Kangaroo","/questions/2/choices/2"); + pollChoice3= new PollChoice(79,"Wallabee","/questions/2/choices/3"); + pollChoice4= new PollChoice(51,"Emu","/questions/2/choices/4"); + + pollChoiceArrayList = new ArrayList(); + pollChoiceArrayList.add(pollChoice1); + pollChoiceArrayList.add(pollChoice2); + pollChoiceArrayList.add(pollChoice3); + pollChoiceArrayList.add(pollChoice4); + + publishStamp = String.valueOf(date); + + poll = new Poll(url,pollChoiceArrayList, question, publishStamp); + pollsArray.add(poll); }