Search in sources :

Example 1 with SearchDao

use of com.enonic.xp.repo.impl.search.SearchDao in project xp by enonic.

the class BranchServiceImplTest method setup.

@BeforeEach
public void setup() throws Exception {
    this.storageDao = Mockito.mock(StorageDao.class);
    this.searchDao = Mockito.mock(SearchDao.class);
    this.branchService = new BranchServiceImpl();
    this.branchService.setStorageDao(storageDao);
    this.branchService.setSearchDao(searchDao);
    context = InternalContext.create().branch(Branch.from("myBranch")).authInfo(AuthenticationInfo.unAuthenticated()).repositoryId(RepositoryId.from("my-repo")).build();
}
Also used : SearchDao(com.enonic.xp.repo.impl.search.SearchDao) BranchServiceImpl(com.enonic.xp.repo.impl.branch.storage.BranchServiceImpl) StorageDao(com.enonic.xp.repo.impl.storage.StorageDao) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

BranchServiceImpl (com.enonic.xp.repo.impl.branch.storage.BranchServiceImpl)1 SearchDao (com.enonic.xp.repo.impl.search.SearchDao)1 StorageDao (com.enonic.xp.repo.impl.storage.StorageDao)1 BeforeEach (org.junit.jupiter.api.BeforeEach)1