Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Test
- public void newSurveyTest() {
- SubmitWorkshopSurveyController instance = new SubmitWorkshopSurveyController();
- Event e = new Exhibition();
- instance.setEvent(e);
- Workshop w1=new Workshop("Work1","30");
- Workshop w2=new Workshop("Work2","20");
- List<Workshop> wL = new ArrayList<>();
- wL.add(w1);
- wL.add(w2);
- Survey expResult = new Survey("Survey 1", wL, "map");
- Survey result = instance.newSurvey();
- result.setSurveyTitle("Survey 1");
- result.setWorkshopList(wL);
- result.setMapColouring("map");
- assertEquals(expResult, result);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement