Search in sources :

Example 1 with AnnouncementService

use of ca.corefacility.bioinformatics.irida.service.AnnouncementService 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);
}
Also used : User(ca.corefacility.bioinformatics.irida.model.user.User) AnnouncementUserJoin(ca.corefacility.bioinformatics.irida.model.announcements.AnnouncementUserJoin) AnnouncementService(ca.corefacility.bioinformatics.irida.service.AnnouncementService) Announcement(ca.corefacility.bioinformatics.irida.model.announcements.Announcement) UserService(ca.corefacility.bioinformatics.irida.service.user.UserService) AnnouncementsController(ca.corefacility.bioinformatics.irida.ria.web.AnnouncementsController) Before(org.junit.Before)

Aggregations

Announcement (ca.corefacility.bioinformatics.irida.model.announcements.Announcement)1 AnnouncementUserJoin (ca.corefacility.bioinformatics.irida.model.announcements.AnnouncementUserJoin)1 User (ca.corefacility.bioinformatics.irida.model.user.User)1 AnnouncementsController (ca.corefacility.bioinformatics.irida.ria.web.AnnouncementsController)1 AnnouncementService (ca.corefacility.bioinformatics.irida.service.AnnouncementService)1 UserService (ca.corefacility.bioinformatics.irida.service.user.UserService)1 Before (org.junit.Before)1