@Test @RunWithCustomExecutor public void isRunningShouldReturnFalseWhenNoProcessStarted() { OfferDiffService instance = new OfferDiffService(distribution); boolean isRunning = instance.isRunning(); assertThat(isRunning).isFalse(); }
public boolean isRunning() { OfferDiffProcess offerDiffProcess = lastOfferDiffProcess.get(); return offerDiffProcess != null && offerDiffProcess.isRunning(); }
OfferDiffService { public boolean isRunning() { OfferDiffProcess offerDiffProcess = lastOfferDiffProcess.get(); return offerDiffProcess != null && offerDiffProcess.isRunning(); } }
OfferDiffService { public boolean isRunning() { OfferDiffProcess offerDiffProcess = lastOfferDiffProcess.get(); return offerDiffProcess != null && offerDiffProcess.isRunning(); } OfferDiffService(StorageDistribution distribution); }
OfferDiffService { public boolean isRunning() { OfferDiffProcess offerDiffProcess = lastOfferDiffProcess.get(); return offerDiffProcess != null && offerDiffProcess.isRunning(); } OfferDiffService(StorageDistribution distribution); boolean startOfferDiff(String offer1, String offer2, DataCategory dataCategory); boolean isRunning(); OfferDiffStatus getLastOfferDiffStatus(); }
OfferDiffService { public boolean isRunning() { OfferDiffProcess offerDiffProcess = lastOfferDiffProcess.get(); return offerDiffProcess != null && offerDiffProcess.isRunning(); } OfferDiffService(StorageDistribution distribution); boolean startOfferDiff(String offer1, String offer2, DataCategory dataCategory); boolean isRunning(); OfferDiffStatus getLastOfferDiffStatus();  }