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();
}
Aggregations