@Test public void getStateTokenAndResultCount() throws HodErrorException { final int maxResults = 5; final boolean promotions = false; findDocumentsService.getStateTokenAndResultCount(queryRestrictions, maxResults, promotions); verify(documentsService).getStateTokenAndResultCount(queryRestrictions, maxResults, promotions); }
@Override public StateTokenAndResultCount getStateTokenAndResultCount(final HodQueryRestrictions queryRestrictions, final int maxResults, final boolean promotions) throws HodErrorException { return documentsService.getStateTokenAndResultCount(queryRestrictions, maxResults, promotions); }
FindHodDocumentService implements HodDocumentsService { @Override public StateTokenAndResultCount getStateTokenAndResultCount(final HodQueryRestrictions queryRestrictions, final int maxResults, final boolean promotions) throws HodErrorException { return documentsService.getStateTokenAndResultCount(queryRestrictions, maxResults, promotions); } }
FindHodDocumentService implements HodDocumentsService { @Override public StateTokenAndResultCount getStateTokenAndResultCount(final HodQueryRestrictions queryRestrictions, final int maxResults, final boolean promotions) throws HodErrorException { return documentsService.getStateTokenAndResultCount(queryRestrictions, maxResults, promotions); } @Autowired  FindHodDocumentService(
            final HodDatabasesService databasesService,
            @Qualifier(DOCUMENTS_SERVICE_BEAN_NAME)
            final HodDocumentsService documentsService,
            final ObjectFactory<HodDatabasesRequestBuilder> databasesRequestBuilderFactory,
            final ConfigService<HodFindConfig> configService
    ); }
FindHodDocumentService implements HodDocumentsService { @Override public StateTokenAndResultCount getStateTokenAndResultCount(final HodQueryRestrictions queryRestrictions, final int maxResults, final boolean promotions) throws HodErrorException { return documentsService.getStateTokenAndResultCount(queryRestrictions, maxResults, promotions); } @Autowired  FindHodDocumentService(
            final HodDatabasesService databasesService,
            @Qualifier(DOCUMENTS_SERVICE_BEAN_NAME)
            final HodDocumentsService documentsService,
            final ObjectFactory<HodDatabasesRequestBuilder> databasesRequestBuilderFactory,
            final ConfigService<HodFindConfig> configService
    ); @Override @Cacheable(value = FindCacheNames.DOCUMENTS, cacheResolver = CachingConfiguration.PER_USER_CACHE_RESOLVER_NAME) Documents<HodSearchResult> queryTextIndex(final HodQueryRequest queryRequest); @Override @Cacheable(value = FindCacheNames.SIMILAR_DOCUMENTS, cacheResolver = CachingConfiguration.PER_USER_CACHE_RESOLVER_NAME) Documents<HodSearchResult> findSimilar(final HodSuggestRequest suggestRequest); @Override List<HodSearchResult> getDocumentContent(final HodGetContentRequest getContentRequest); @Override String getStateToken(final HodQueryRestrictions queryRestrictions, final int maxResults, final boolean promotions); @Override StateTokenAndResultCount getStateTokenAndResultCount(final HodQueryRestrictions queryRestrictions, final int maxResults, final boolean promotions); }
FindHodDocumentService implements HodDocumentsService { @Override public StateTokenAndResultCount getStateTokenAndResultCount(final HodQueryRestrictions queryRestrictions, final int maxResults, final boolean promotions) throws HodErrorException { return documentsService.getStateTokenAndResultCount(queryRestrictions, maxResults, promotions); } @Autowired  FindHodDocumentService(
            final HodDatabasesService databasesService,
            @Qualifier(DOCUMENTS_SERVICE_BEAN_NAME)
            final HodDocumentsService documentsService,
            final ObjectFactory<HodDatabasesRequestBuilder> databasesRequestBuilderFactory,
            final ConfigService<HodFindConfig> configService
    ); @Override @Cacheable(value = FindCacheNames.DOCUMENTS, cacheResolver = CachingConfiguration.PER_USER_CACHE_RESOLVER_NAME) Documents<HodSearchResult> queryTextIndex(final HodQueryRequest queryRequest); @Override @Cacheable(value = FindCacheNames.SIMILAR_DOCUMENTS, cacheResolver = CachingConfiguration.PER_USER_CACHE_RESOLVER_NAME) Documents<HodSearchResult> findSimilar(final HodSuggestRequest suggestRequest); @Override List<HodSearchResult> getDocumentContent(final HodGetContentRequest getContentRequest); @Override String getStateToken(final HodQueryRestrictions queryRestrictions, final int maxResults, final boolean promotions); @Override StateTokenAndResultCount getStateTokenAndResultCount(final HodQueryRestrictions queryRestrictions, final int maxResults, final boolean promotions);  }