@Test public void testDeleteAll() throws Exception { when(entityManager.createNativeQuery(anyString())).thenReturn(query); cleaner.deleteAll(); verify(payCheckRepository).deleteAll(); verify(taxWebserviceCallResultRepository).deleteAll(); verify(taxCalculationRepository).deleteAll(); verify(entityManager, times(6)).createNativeQuery(anyString()); verify(query, times(6)).executeUpdate(); }
@Override public void deleteAll() { deleteEverythingFromRepositories(); removeJobExecutions(); }
SpringBatchAndBatchRepositoryCleaner implements EmployeeGeneratorCleaner { @Override public void deleteAll() { deleteEverythingFromRepositories(); removeJobExecutions(); } }
SpringBatchAndBatchRepositoryCleaner implements EmployeeGeneratorCleaner { @Override public void deleteAll() { deleteEverythingFromRepositories(); removeJobExecutions(); }  }
SpringBatchAndBatchRepositoryCleaner implements EmployeeGeneratorCleaner { @Override public void deleteAll() { deleteEverythingFromRepositories(); removeJobExecutions(); }  @Override void deleteAll(); }
SpringBatchAndBatchRepositoryCleaner implements EmployeeGeneratorCleaner { @Override public void deleteAll() { deleteEverythingFromRepositories(); removeJobExecutions(); }  @Override void deleteAll();  }