@Test public void testImportMessagesNoMessagesNotImported() { final var certificateId = "certificateId"; final var messageId = "messageId"; final var messageContent = "messageContent"; final var subject = "subject"; final var logicalAddress = "logicalAddress"; final var timestamp = LocalDateTime.now(); final var messageFromIT = MessageFromIT.create(certificateId, messageId, messageContent, subject, logicalAddress, timestamp); doReturn(Arrays.asList(messageFromIT)).when(itIntegrationService).findMessagesByCertificateId(certificateId); doReturn(Arrays.asList(messageId)).when(messageRepository).findMeddelandeIdByMeddelandeId(anyList()); 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);  }