Search in sources :

Example 6 with NodeServiceImpl

use of com.enonic.xp.repo.impl.node.NodeServiceImpl in project xp by enonic.

the class ContentServiceImplTest_getInvalidContent method test_empty_content_ids_returns_true.

@Test
public void test_empty_content_ids_returns_true() throws Exception {
    NodeServiceImpl nodeService = Mockito.spy(this.nodeService);
    Mockito.verify(nodeService, times(0)).findByQuery(Mockito.isA(NodeQuery.class));
    assertTrue(this.contentService.getInvalidContent(ContentIds.empty()).isEmpty());
}
Also used : NodeQuery(com.enonic.xp.node.NodeQuery) NodeServiceImpl(com.enonic.xp.repo.impl.node.NodeServiceImpl) Test(org.junit.jupiter.api.Test)

Aggregations

NodeServiceImpl (com.enonic.xp.repo.impl.node.NodeServiceImpl)6 MemoryBlobStore (com.enonic.xp.internal.blobstore.MemoryBlobStore)4 BinaryServiceImpl (com.enonic.xp.repo.impl.binary.BinaryServiceImpl)4 BranchServiceImpl (com.enonic.xp.repo.impl.branch.storage.BranchServiceImpl)4 IndexServiceInternalImpl (com.enonic.xp.repo.impl.elasticsearch.IndexServiceInternalImpl)4 SearchDaoImpl (com.enonic.xp.repo.impl.elasticsearch.search.SearchDaoImpl)4 StorageDaoImpl (com.enonic.xp.repo.impl.elasticsearch.storage.StorageDaoImpl)4 IndexServiceImpl (com.enonic.xp.repo.impl.index.IndexServiceImpl)4 NodeVersionServiceImpl (com.enonic.xp.repo.impl.node.dao.NodeVersionServiceImpl)4 NodeRepositoryServiceImpl (com.enonic.xp.repo.impl.repository.NodeRepositoryServiceImpl)4 RepositoryEntryServiceImpl (com.enonic.xp.repo.impl.repository.RepositoryEntryServiceImpl)4 RepositoryServiceImpl (com.enonic.xp.repo.impl.repository.RepositoryServiceImpl)4 NodeSearchServiceImpl (com.enonic.xp.repo.impl.search.NodeSearchServiceImpl)4 IndexDataServiceImpl (com.enonic.xp.repo.impl.storage.IndexDataServiceImpl)4 NodeStorageServiceImpl (com.enonic.xp.repo.impl.storage.NodeStorageServiceImpl)4 VersionServiceImpl (com.enonic.xp.repo.impl.version.VersionServiceImpl)4 BeforeEach (org.junit.jupiter.api.BeforeEach)4 AuditLogService (com.enonic.xp.audit.AuditLogService)2 Context (com.enonic.xp.context.Context)2 EventPublisherImpl (com.enonic.xp.core.impl.event.EventPublisherImpl)2