@Test @UseDataProvider("ccJudgmentsFieldsData") public void fillFields(CommonCourtJudgment givenJudgment, List<SolrInputField> expectedFields) { SolrInputDocument doc = new SolrInputDocument(); JudgmentIndexingData indexingData = new JudgmentIndexingData(); indexingData.setJudgment(givenJudgment); ccJudgmentIndexingProcessor.fillFields(doc, indexingData); expectedFields.forEach(expectedField -> assertFieldValues(doc, expectedField)); }
@Override public void fillFields(SolrInputDocument doc, JudgmentIndexingData judgmentData) { super.fillFields(doc, judgmentData); CommonCourtJudgment commonCourtJudgment = (CommonCourtJudgment) judgmentData.getJudgment(); fillKeywords(doc, commonCourtJudgment); fillCourt(doc, commonCourtJudgment); }
CcJudgmentIndexFieldsFiller extends JudgmentIndexFieldsFiller { @Override public void fillFields(SolrInputDocument doc, JudgmentIndexingData judgmentData) { super.fillFields(doc, judgmentData); CommonCourtJudgment commonCourtJudgment = (CommonCourtJudgment) judgmentData.getJudgment(); fillKeywords(doc, commonCourtJudgment); fillCourt(doc, commonCourtJudgment); } }
CcJudgmentIndexFieldsFiller extends JudgmentIndexFieldsFiller { @Override public void fillFields(SolrInputDocument doc, JudgmentIndexingData judgmentData) { super.fillFields(doc, judgmentData); CommonCourtJudgment commonCourtJudgment = (CommonCourtJudgment) judgmentData.getJudgment(); fillKeywords(doc, commonCourtJudgment); fillCourt(doc, commonCourtJudgment); }  }
CcJudgmentIndexFieldsFiller extends JudgmentIndexFieldsFiller { @Override public void fillFields(SolrInputDocument doc, JudgmentIndexingData judgmentData) { super.fillFields(doc, judgmentData); CommonCourtJudgment commonCourtJudgment = (CommonCourtJudgment) judgmentData.getJudgment(); fillKeywords(doc, commonCourtJudgment); fillCourt(doc, commonCourtJudgment); }  @Override boolean isApplicable(CourtType courtType); @Override void fillFields(SolrInputDocument doc, JudgmentIndexingData judgmentData); @Autowired void setCcCourtAreaFieldValueCreator(CcCourtAreaFieldValueCreator ccCourtAreaFieldValueCreator); }
CcJudgmentIndexFieldsFiller extends JudgmentIndexFieldsFiller { @Override public void fillFields(SolrInputDocument doc, JudgmentIndexingData judgmentData) { super.fillFields(doc, judgmentData); CommonCourtJudgment commonCourtJudgment = (CommonCourtJudgment) judgmentData.getJudgment(); fillKeywords(doc, commonCourtJudgment); fillCourt(doc, commonCourtJudgment); }  @Override boolean isApplicable(CourtType courtType); @Override void fillFields(SolrInputDocument doc, JudgmentIndexingData judgmentData); @Autowired void setCcCourtAreaFieldValueCreator(CcCourtAreaFieldValueCreator ccCourtAreaFieldValueCreator);  }