@Test public void shouldUnscheduleJob() { when(dbStack.getId()).thenReturn(DB_STACK_ID); victim.unschedule(dbStack); verify(jobService).unschedule(String.valueOf(DB_STACK_ID)); }
public void unschedule(DBStack dbStack) { jobService.unschedule(new DBStackJobAdapter(dbStack).getLocalId()); LOGGER.info("{} is unscheduled, it will not auto sync anymore", dbStack.getName()); }
DBStackJobService { public void unschedule(DBStack dbStack) { jobService.unschedule(new DBStackJobAdapter(dbStack).getLocalId()); LOGGER.info("{} is unscheduled, it will not auto sync anymore", dbStack.getName()); } }
DBStackJobService { public void unschedule(DBStack dbStack) { jobService.unschedule(new DBStackJobAdapter(dbStack).getLocalId()); LOGGER.info("{} is unscheduled, it will not auto sync anymore", dbStack.getName()); }  }
DBStackJobService { public void unschedule(DBStack dbStack) { jobService.unschedule(new DBStackJobAdapter(dbStack).getLocalId()); LOGGER.info("{} is unscheduled, it will not auto sync anymore", dbStack.getName()); }  void schedule(DBStack dbStack); void unschedule(DBStack dbStack); }
DBStackJobService { public void unschedule(DBStack dbStack) { jobService.unschedule(new DBStackJobAdapter(dbStack).getLocalId()); LOGGER.info("{} is unscheduled, it will not auto sync anymore", dbStack.getName()); }  void schedule(DBStack dbStack); void unschedule(DBStack dbStack);  }