@Test public void testProcessShouldCallIndexMessage() { given(fileNameProvider.getFileName(request)).willReturn(FILE_NAME); given(indexMessageFactory.createIndexMessage(FILE_NAME, IndexingType.ADD.getName())).willReturn(message); underTest.process(request); verify(messageIndexer).sendMessageToIndexer(message); }
public void process(final WilmaHttpRequest request) { String fileName = fileNameProvider.getFileName(request); IndexMessage message = indexMessageFactory.createIndexMessage(fileName, IndexingType.ADD.getName()); messageIndexer.sendMessageToIndexer(message); }
JmsRequestIndexingProcessor { public void process(final WilmaHttpRequest request) { String fileName = fileNameProvider.getFileName(request); IndexMessage message = indexMessageFactory.createIndexMessage(fileName, IndexingType.ADD.getName()); messageIndexer.sendMessageToIndexer(message); } }
JmsRequestIndexingProcessor { public void process(final WilmaHttpRequest request) { String fileName = fileNameProvider.getFileName(request); IndexMessage message = indexMessageFactory.createIndexMessage(fileName, IndexingType.ADD.getName()); messageIndexer.sendMessageToIndexer(message); }  }
JmsRequestIndexingProcessor { public void process(final WilmaHttpRequest request) { String fileName = fileNameProvider.getFileName(request); IndexMessage message = indexMessageFactory.createIndexMessage(fileName, IndexingType.ADD.getName()); messageIndexer.sendMessageToIndexer(message); }  void process(final WilmaHttpRequest request); }
JmsRequestIndexingProcessor { public void process(final WilmaHttpRequest request) { String fileName = fileNameProvider.getFileName(request); IndexMessage message = indexMessageFactory.createIndexMessage(fileName, IndexingType.ADD.getName()); messageIndexer.sendMessageToIndexer(message); }  void process(final WilmaHttpRequest request);  }