@Test public void testImportMessagesNoMessagesInIT() { final var certificateId = "certificateId"; doReturn(Collections.emptyList()).when(itIntegrationService).findMessagesByCertificateId(certificateId); messageImportService.importMessages(certificateId); verify(messageRepository, never()).save(any()); }
@Override @Transactional public void importMessages(String certificateId) { importMessages(certificateId, null); }
MessageImportServiceImpl implements MessageImportService { @Override @Transactional public void importMessages(String certificateId) { importMessages(certificateId, null); } }
MessageImportServiceImpl implements MessageImportService { @Override @Transactional public void importMessages(String certificateId) { importMessages(certificateId, null); }  }
MessageImportServiceImpl implements MessageImportService { @Override @Transactional public void importMessages(String certificateId) { importMessages(certificateId, null); }  @Override boolean isImportNeeded(String certificateId); @Override @Transactional void importMessages(String certificateId); @Override @Transactional void importMessages(String certificateId, String excludeMessageId); }
MessageImportServiceImpl implements MessageImportService { @Override @Transactional public void importMessages(String certificateId) { importMessages(certificateId, null); }  @Override boolean isImportNeeded(String certificateId); @Override @Transactional void importMessages(String certificateId); @Override @Transactional void importMessages(String certificateId, String excludeMessageId);  }