use of ca.corefacility.bioinformatics.irida.ria.web.AnnouncementsController in project irida by phac-nml.
the class AnnouncementsControllerTest method setUp.
@Before
public void setUp() {
userService = mock(UserService.class);
announcementService = mock(AnnouncementService.class);
announcementsController = new AnnouncementsController(userService, announcementService);
user = new User("testme", "test@me.com", "aaa", "John", "Curatcha", "2222222");
Announcement a1 = new Announcement("First message", user);
Announcement a2 = new Announcement("Second message", user);
announcementList = Lists.newArrayList(a1, a2);
AnnouncementUserJoin auj1 = new AnnouncementUserJoin(a1, user);
AnnouncementUserJoin auj2 = new AnnouncementUserJoin(a2, user);
announcementUserList = Lists.newArrayList(auj1, auj2);
}
Aggregations