@Test public void process_COMMON_COURT_JUDGMENT() throws Exception { CommonCourtJudgment judgment = new CommonCourtJudgment(); ReflectionTestUtils.setField(judgment, "id", 6); JudgmentIndexingData indexingData = new JudgmentIndexingData(); indexingData.setJudgment(judgment); judgmentIndexingProcessor.process(indexingData); ArgumentCaptor<JudgmentIndexingData> argCaptureForFill = ArgumentCaptor.forClass(JudgmentIndexingData.class); verify(ccJudgmentIndexFieldsFiller, times(1)).fillFields(any(SolrInputDocument.class), argCaptureForFill.capture()); assertEquals(6, argCaptureForFill.getValue().getJudgment().getId()); verify(judgmentRepository).markAsIndexed(6L); }
@Override public SolrInputDocument process(JudgmentIndexingData item) throws Exception { SolrInputDocument doc = new SolrInputDocument(); fillJudgmentFields(doc, item); Judgment judgment = item.getJudgment(); judgmentRepository.markAsIndexed(judgment.getId()); return doc; }
JudgmentIndexingProcessor implements ItemProcessor<JudgmentIndexingData, SolrInputDocument> { @Override public SolrInputDocument process(JudgmentIndexingData item) throws Exception { SolrInputDocument doc = new SolrInputDocument(); fillJudgmentFields(doc, item); Judgment judgment = item.getJudgment(); judgmentRepository.markAsIndexed(judgment.getId()); return doc; } }
JudgmentIndexingProcessor implements ItemProcessor<JudgmentIndexingData, SolrInputDocument> { @Override public SolrInputDocument process(JudgmentIndexingData item) throws Exception { SolrInputDocument doc = new SolrInputDocument(); fillJudgmentFields(doc, item); Judgment judgment = item.getJudgment(); judgmentRepository.markAsIndexed(judgment.getId()); return doc; }  }
JudgmentIndexingProcessor implements ItemProcessor<JudgmentIndexingData, SolrInputDocument> { @Override public SolrInputDocument process(JudgmentIndexingData item) throws Exception { SolrInputDocument doc = new SolrInputDocument(); fillJudgmentFields(doc, item); Judgment judgment = item.getJudgment(); judgmentRepository.markAsIndexed(judgment.getId()); return doc; }  @Override SolrInputDocument process(JudgmentIndexingData item); @Autowired void setJudgmentRepository(JudgmentRepository judgmentRepository); @Autowired void setJudgmentIndexFieldsFillers(
            List<JudgmentIndexFieldsFiller> judgmentIndexFieldsFillers); }
JudgmentIndexingProcessor implements ItemProcessor<JudgmentIndexingData, SolrInputDocument> { @Override public SolrInputDocument process(JudgmentIndexingData item) throws Exception { SolrInputDocument doc = new SolrInputDocument(); fillJudgmentFields(doc, item); Judgment judgment = item.getJudgment(); judgmentRepository.markAsIndexed(judgment.getId()); return doc; }  @Override SolrInputDocument process(JudgmentIndexingData item); @Autowired void setJudgmentRepository(JudgmentRepository judgmentRepository); @Autowired void setJudgmentIndexFieldsFillers(
            List<JudgmentIndexFieldsFiller> judgmentIndexFieldsFillers);  }