Search in sources :

Example 1 with SocialUserRepositoryAPI

use of org.ext.uberfire.social.activities.service.SocialUserRepositoryAPI in project kie-wb-common by kiegroup.

the class UserHomePageSidePresenterTest method setup.

@Before
public void setup() {
    socialUserServiceAPICaller = new CallerMock<SocialUserServiceAPI>(socialUserServiceAPI);
    socialUserRepositoryAPICaller = new CallerMock<SocialUserRepositoryAPI>(socialUserRepositoryAPI);
    presenter.socialUserService = socialUserServiceAPICaller;
    presenter.socialUserRepositoryAPI = socialUserRepositoryAPICaller;
    presenter.selectedEvent = selectEvent;
    presenter.users = new HashMap<String, SocialUser>();
    presenter.loggedUser = new UserImpl("dora");
    dora = new SocialUser("dora");
    bento = new SocialUser("bento");
    presenter.users.put("dora", dora);
    presenter.users.put("bento", bento);
}
Also used : SocialUserRepositoryAPI(org.ext.uberfire.social.activities.service.SocialUserRepositoryAPI) SocialUser(org.ext.uberfire.social.activities.model.SocialUser) UserImpl(org.jboss.errai.security.shared.api.identity.UserImpl) SocialUserServiceAPI(org.ext.uberfire.social.activities.service.SocialUserServiceAPI) Before(org.junit.Before)

Aggregations

SocialUser (org.ext.uberfire.social.activities.model.SocialUser)1 SocialUserRepositoryAPI (org.ext.uberfire.social.activities.service.SocialUserRepositoryAPI)1 SocialUserServiceAPI (org.ext.uberfire.social.activities.service.SocialUserServiceAPI)1 UserImpl (org.jboss.errai.security.shared.api.identity.UserImpl)1 Before (org.junit.Before)1