@Test public void testFindAllForAutoSync() { Set<DBStack> expected = Collections.emptySet(); when(dbStackRepository.findAllDbStackByStatusIn(Status.getAutoSyncStatuses())).thenReturn(expected); assertEquals(expected, underTest.findAllForAutoSync()); }
public Set<DBStack> findAllForAutoSync() { return dbStackRepository.findAllDbStackByStatusIn(Status.getAutoSyncStatuses()); }
DBStackService { public Set<DBStack> findAllForAutoSync() { return dbStackRepository.findAllDbStackByStatusIn(Status.getAutoSyncStatuses()); } }
DBStackService { public Set<DBStack> findAllForAutoSync() { return dbStackRepository.findAllDbStackByStatusIn(Status.getAutoSyncStatuses()); }  }
DBStackService { public Set<DBStack> findAllForAutoSync() { return dbStackRepository.findAllDbStackByStatusIn(Status.getAutoSyncStatuses()); }  DBStack getById(Long id); Optional<DBStack> findById(Long id); DBStack getByNameAndEnvironmentCrn(String name, String environmentCrn); Optional<DBStack> findByNameAndEnvironmentCrn(String name, String environmentCrn); DBStack getByCrn(String crn); Optional<DBStack> getByCrn(Crn crn); Set<Long> findAllDeleting(); Set<Long> findAllDeletingById(Set<Long> dbStackIds); Set<DBStack> findAllForAutoSync(); DBStack save(DBStack dbStack); @Transactional void delete(DBStack dbStack); @Transactional void delete(Long dbStackId); }
DBStackService { public Set<DBStack> findAllForAutoSync() { return dbStackRepository.findAllDbStackByStatusIn(Status.getAutoSyncStatuses()); }  DBStack getById(Long id); Optional<DBStack> findById(Long id); DBStack getByNameAndEnvironmentCrn(String name, String environmentCrn); Optional<DBStack> findByNameAndEnvironmentCrn(String name, String environmentCrn); DBStack getByCrn(String crn); Optional<DBStack> getByCrn(Crn crn); Set<Long> findAllDeleting(); Set<Long> findAllDeletingById(Set<Long> dbStackIds); Set<DBStack> findAllForAutoSync(); DBStack save(DBStack dbStack); @Transactional void delete(DBStack dbStack); @Transactional void delete(Long dbStackId);  }