@Test public void testRetrieveDoDDocument() { try { NoteImage noteImage = retrieveDodDocumentService.retrieveDodDocument(queryBuilder.build()).get(); try { verify(mockJMeadowsClient).getBHIENoteImage(any(JMeadowsQuery.class)); } catch (JMeadowsException_Exception e) { fail(e.getMessage()); } assertThat(noteImage.getNoteBytes(), is(testNoteImage.getNoteBytes())); assertThat(noteImage.getContentType(), is(testNoteImage.getContentType())); assertThat(noteImage.getContentDisposition(), is(testNoteImage.getContentDisposition())); } catch (InterruptedException | ExecutionException e) { fail(e.getMessage()); } }
@Override public Future<NoteImage> retrieveDodDocument(JMeadowsQuery jMeadowsQuery) { logger.debug("retrieveDodDocument begin"); return new RetrieveDodDocumentCommand(jMeadowsClient, jMeadowsQuery, this.config.getMaxThreads(), this.config.getTimeoutMS()).queue(); }
RetrieveDodDocumentService implements IRetrieveDodDocumentService { @Override public Future<NoteImage> retrieveDodDocument(JMeadowsQuery jMeadowsQuery) { logger.debug("retrieveDodDocument begin"); return new RetrieveDodDocumentCommand(jMeadowsClient, jMeadowsQuery, this.config.getMaxThreads(), this.config.getTimeoutMS()).queue(); } }
RetrieveDodDocumentService implements IRetrieveDodDocumentService { @Override public Future<NoteImage> retrieveDodDocument(JMeadowsQuery jMeadowsQuery) { logger.debug("retrieveDodDocument begin"); return new RetrieveDodDocumentCommand(jMeadowsClient, jMeadowsQuery, this.config.getMaxThreads(), this.config.getTimeoutMS()).queue(); } @Autowired  RetrieveDodDocumentService(RetrieveDocumentConfiguration config); }
RetrieveDodDocumentService implements IRetrieveDodDocumentService { @Override public Future<NoteImage> retrieveDodDocument(JMeadowsQuery jMeadowsQuery) { logger.debug("retrieveDodDocument begin"); return new RetrieveDodDocumentCommand(jMeadowsClient, jMeadowsQuery, this.config.getMaxThreads(), this.config.getTimeoutMS()).queue(); } @Autowired  RetrieveDodDocumentService(RetrieveDocumentConfiguration config); void setJMeadowsClient(JMeadowsData jMeadowsClient); @Override Future<NoteImage> retrieveDodDocument(JMeadowsQuery jMeadowsQuery); }
RetrieveDodDocumentService implements IRetrieveDodDocumentService { @Override public Future<NoteImage> retrieveDodDocument(JMeadowsQuery jMeadowsQuery) { logger.debug("retrieveDodDocument begin"); return new RetrieveDodDocumentCommand(jMeadowsClient, jMeadowsQuery, this.config.getMaxThreads(), this.config.getTimeoutMS()).queue(); } @Autowired  RetrieveDodDocumentService(RetrieveDocumentConfiguration config); void setJMeadowsClient(JMeadowsData jMeadowsClient); @Override Future<NoteImage> retrieveDodDocument(JMeadowsQuery jMeadowsQuery);  }