@Test void updateAvailableBuildsWithoutRunningEngine() { givenNoRunningEngine(); fullTextSearch.updateAvailableBuilds(Collections.emptyList()); thenJustReturns(); }
public void updateAvailableBuilds(final List<BuildImportSummary> availableBuilds) { if(!searchAdapter.isEngineRunning()) { return; } List<BuildIdentifier> existingBuilds = getAvailableBuildIdentifiers(availableBuilds); searchAdapter.updateAvailableBuilds(existingBuilds); LOGGER.info("Updated available builds."); }
FullTextSearch { public void updateAvailableBuilds(final List<BuildImportSummary> availableBuilds) { if(!searchAdapter.isEngineRunning()) { return; } List<BuildIdentifier> existingBuilds = getAvailableBuildIdentifiers(availableBuilds); searchAdapter.updateAvailableBuilds(existingBuilds); LOGGER.info("Updated available builds."); } }
FullTextSearch { public void updateAvailableBuilds(final List<BuildImportSummary> availableBuilds) { if(!searchAdapter.isEngineRunning()) { return; } List<BuildIdentifier> existingBuilds = getAvailableBuildIdentifiers(availableBuilds); searchAdapter.updateAvailableBuilds(existingBuilds); LOGGER.info("Updated available builds."); } FullTextSearch();   FullTextSearch(final SearchAdapter search); }
FullTextSearch { public void updateAvailableBuilds(final List<BuildImportSummary> availableBuilds) { if(!searchAdapter.isEngineRunning()) { return; } List<BuildIdentifier> existingBuilds = getAvailableBuildIdentifiers(availableBuilds); searchAdapter.updateAvailableBuilds(existingBuilds); LOGGER.info("Updated available builds."); } FullTextSearch();   FullTextSearch(final SearchAdapter search); boolean isEngineRunning(); String getEndpoint(); boolean isSearchEngineEndpointConfigured(); SearchTree search(SearchRequest searchRequest); void indexUseCases(final UseCaseScenariosList useCaseScenariosList, final BuildIdentifier buildIdentifier); void indexSteps(final List<Step> steps, final List<StepLink> stepLinkList, final Scenario scenario, final UseCase usecase, final BuildIdentifier buildIdentifier); void updateAvailableBuilds(final List<BuildImportSummary> availableBuilds); }
FullTextSearch { public void updateAvailableBuilds(final List<BuildImportSummary> availableBuilds) { if(!searchAdapter.isEngineRunning()) { return; } List<BuildIdentifier> existingBuilds = getAvailableBuildIdentifiers(availableBuilds); searchAdapter.updateAvailableBuilds(existingBuilds); LOGGER.info("Updated available builds."); } FullTextSearch();   FullTextSearch(final SearchAdapter search); boolean isEngineRunning(); String getEndpoint(); boolean isSearchEngineEndpointConfigured(); SearchTree search(SearchRequest searchRequest); void indexUseCases(final UseCaseScenariosList useCaseScenariosList, final BuildIdentifier buildIdentifier); void indexSteps(final List<Step> steps, final List<StepLink> stepLinkList, final Scenario scenario, final UseCase usecase, final BuildIdentifier buildIdentifier); void updateAvailableBuilds(final List<BuildImportSummary> availableBuilds); static final String STEP; static final String SCENARIO; static final String USECASE; }