@Test public void testImportNotNeededIfCertificateExistsInWC() { final var certificateId = "certificateId"; doReturn(Optional.of(new Utkast())).when(draftRepository).findById(certificateId); final var actualIsImportNeeded = messageImportService.isImportNeeded(certificateId); assertFalse(actualIsImportNeeded); }
@Override public boolean isImportNeeded(String certificateId) { return draftRepository.findById(certificateId).isEmpty(); }
MessageImportServiceImpl implements MessageImportService { @Override public boolean isImportNeeded(String certificateId) { return draftRepository.findById(certificateId).isEmpty(); } }
MessageImportServiceImpl implements MessageImportService { @Override public boolean isImportNeeded(String certificateId) { return draftRepository.findById(certificateId).isEmpty(); }  }
MessageImportServiceImpl implements MessageImportService { @Override public boolean isImportNeeded(String certificateId) { return draftRepository.findById(certificateId).isEmpty(); }  @Override boolean isImportNeeded(String certificateId); @Override @Transactional void importMessages(String certificateId); @Override @Transactional void importMessages(String certificateId, String excludeMessageId); }
MessageImportServiceImpl implements MessageImportService { @Override public boolean isImportNeeded(String certificateId) { return draftRepository.findById(certificateId).isEmpty(); }  @Override boolean isImportNeeded(String certificateId); @Override @Transactional void importMessages(String certificateId); @Override @Transactional void importMessages(String certificateId, String excludeMessageId);  }