Advertisement
Guest User

Untitled

a guest
Jun 21st, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. @Test
  2. public void newSurveyTest() {
  3. SubmitWorkshopSurveyController instance = new SubmitWorkshopSurveyController();
  4. Event e = new Exhibition();
  5. instance.setEvent(e);
  6. Workshop w1=new Workshop("Work1","30");
  7. Workshop w2=new Workshop("Work2","20");
  8. List<Workshop> wL = new ArrayList<>();
  9. wL.add(w1);
  10. wL.add(w2);
  11.  
  12. Survey expResult = new Survey("Survey 1", wL, "map");
  13. Survey result = instance.newSurvey();
  14. result.setSurveyTitle("Survey 1");
  15. result.setWorkshopList(wL);
  16. result.setMapColouring("map");
  17. assertEquals(expResult, result);
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement