Search in sources :

Example 1 with AuthorityDAOImpl

use of org.alfresco.repo.security.authority.AuthorityDAOImpl in project alfresco-remote-api by Alfresco.

the class GroupsTest method setup.

@Before
public void setup() throws Exception {
    super.setup();
    authorityService = (AuthorityService) applicationContext.getBean("AuthorityService");
    AuthorityDAOImpl authorityDAOImpl = (AuthorityDAOImpl) applicationContext.getBean("authorityDAO");
    authorityDAOImpl.setSearchService(mockSearchService);
    when(mockSearchServiceQueryResultSet.iterator()).thenReturn(iterator);
}
Also used : AuthorityDAOImpl(org.alfresco.repo.security.authority.AuthorityDAOImpl) Before(org.junit.Before)

Aggregations

AuthorityDAOImpl (org.alfresco.repo.security.authority.AuthorityDAOImpl)1 Before (org.junit.Before)1