use of org.kie.workbench.common.screens.social.hp.security.SocialEventRepositoryConstraint in project kie-wb-common by kiegroup.
the class RepositoryListServiceImplTest method setup.
@Before
public void setup() {
Set<Repository> repositories = new HashSet<Repository>();
repositories.add(new GitRepository("dora", new Space("space")));
final SocialEventRepositoryConstraint socialEventRepositoryConstraint = mock(SocialEventRepositoryConstraint.class);
when(socialEventRepositoryConstraint.getAuthorizedRepositories()).thenReturn(repositories);
service.repositoryConstraint = socialEventRepositoryConstraint;
}
Aggregations