Search in sources :

Example 1 with SocialEventRepositoryConstraint

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;
}
Also used : Space(org.uberfire.spaces.Space) GitRepository(org.guvnor.structure.repositories.impl.git.GitRepository) Repository(org.guvnor.structure.repositories.Repository) GitRepository(org.guvnor.structure.repositories.impl.git.GitRepository) SocialEventRepositoryConstraint(org.kie.workbench.common.screens.social.hp.security.SocialEventRepositoryConstraint) HashSet(java.util.HashSet) Before(org.junit.Before)

Aggregations

HashSet (java.util.HashSet)1 Repository (org.guvnor.structure.repositories.Repository)1 GitRepository (org.guvnor.structure.repositories.impl.git.GitRepository)1 Before (org.junit.Before)1 SocialEventRepositoryConstraint (org.kie.workbench.common.screens.social.hp.security.SocialEventRepositoryConstraint)1 Space (org.uberfire.spaces.Space)1