@Test void testAreAllComparisonCalculationsFinishedWithRunningThreadsReturnsFalse() { when(threadPoolExecutor.getActiveCount()).thenReturn(1); assertFalse(comparisonExecutor.areAllComparisonCalculationsFinished()); }
public boolean areAllComparisonCalculationsFinished() { return asyncComparisonExecutor.getActiveCount() == 0; }
ComparisonExecutor { public boolean areAllComparisonCalculationsFinished() { return asyncComparisonExecutor.getActiveCount() == 0; } }
ComparisonExecutor { public boolean areAllComparisonCalculationsFinished() { return asyncComparisonExecutor.getActiveCount() == 0; } ComparisonExecutor(AliasResolver aliasResolver);   ComparisonExecutor(ThreadPoolExecutor executorService, AliasResolver aliasResolver); }
ComparisonExecutor { public boolean areAllComparisonCalculationsFinished() { return asyncComparisonExecutor.getActiveCount() == 0; } ComparisonExecutor(AliasResolver aliasResolver);   ComparisonExecutor(ThreadPoolExecutor executorService, AliasResolver aliasResolver); void scheduleAllConfiguredComparisonsForOneBuild(String baseBranchName, String baseBuildName); Future<BuildDiffInfo> scheduleComparison(String baseBranchName, String baseBuildName,
													String comparisonBranchName, String comparisonBuildName, String comparisonName); void executeAfterAllPendingComparisonsDone(Runnable task); boolean areAllComparisonCalculationsFinished(); }
ComparisonExecutor { public boolean areAllComparisonCalculationsFinished() { return asyncComparisonExecutor.getActiveCount() == 0; } ComparisonExecutor(AliasResolver aliasResolver);   ComparisonExecutor(ThreadPoolExecutor executorService, AliasResolver aliasResolver); void scheduleAllConfiguredComparisonsForOneBuild(String baseBranchName, String baseBuildName); Future<BuildDiffInfo> scheduleComparison(String baseBranchName, String baseBuildName,
													String comparisonBranchName, String comparisonBuildName, String comparisonName); void executeAfterAllPendingComparisonsDone(Runnable task); boolean areAllComparisonCalculationsFinished();  }