@Test public void extractCourtCases() { sJudgment.setCaseNumber("CASE 211w/121"); List<CourtCase> courtCases = judgmentExtractor.extractCourtCases(sJudgment, correctionList); assertEquals(1, courtCases.size()); assertEquals(sJudgment.getCaseNumber(), courtCases.get(0).getCaseNumber()); }
@Override public List<CourtCase> extractCourtCases(SourceScJudgment sourceJudgment, ImportCorrectionList correctionList) { return Lists.newArrayList(new CourtCase(sourceJudgment.getCaseNumber())); }
SourceScJudgmentExtractor implements JudgmentDataExtractor<SupremeCourtJudgment, SourceScJudgment> { @Override public List<CourtCase> extractCourtCases(SourceScJudgment sourceJudgment, ImportCorrectionList correctionList) { return Lists.newArrayList(new CourtCase(sourceJudgment.getCaseNumber())); } }
SourceScJudgmentExtractor implements JudgmentDataExtractor<SupremeCourtJudgment, SourceScJudgment> { @Override public List<CourtCase> extractCourtCases(SourceScJudgment sourceJudgment, ImportCorrectionList correctionList) { return Lists.newArrayList(new CourtCase(sourceJudgment.getCaseNumber())); }  }
SourceScJudgmentExtractor implements JudgmentDataExtractor<SupremeCourtJudgment, SourceScJudgment> { @Override public List<CourtCase> extractCourtCases(SourceScJudgment sourceJudgment, ImportCorrectionList correctionList) { return Lists.newArrayList(new CourtCase(sourceJudgment.getCaseNumber())); }  @Override SupremeCourtJudgment createNewJudgment(); @Override List<CourtCase> extractCourtCases(SourceScJudgment sourceJudgment, ImportCorrectionList correctionList); @Override JudgmentTextContent extractTextContent(SourceScJudgment sourceJudgment, ImportCorrectionList correctionList); @Override DateTime extractPublicationDate(SourceScJudgment sourceJudgment, ImportCorrectionList correctionList); @Override String extractPublisher(SourceScJudgment sourceJudgment, ImportCorrectionList correctionList); @Override String extractReviser(SourceScJudgment sourceJudgment, ImportCorrectionList correctionList); @Override List<Judge> extractJudges(SourceScJudgment sourceJudgment, ImportCorrectionList correctionList); @Override List<JudgmentReferencedRegulation> extractReferencedRegulations(SourceScJudgment sourceJudgment, ImportCorrectionList correctionList); @Override JudgmentType extractJudgmentType(SourceScJudgment sourceJudgment, ImportCorrectionList correctionList); @Override List<String> extractLegalBases(SourceScJudgment sourceJudgment, ImportCorrectionList correctionList); @Override String extractSummary(SourceScJudgment sourceJudgment, ImportCorrectionList correctionList); @Override String extractDecision(SourceScJudgment sourceJudgment, ImportCorrectionList correctionList); @Override List<String> extractCourtReporters(SourceScJudgment sourceJudgment, ImportCorrectionList correctionList); @Override LocalDate extractJudgmentDate(SourceScJudgment sourceJudgment, ImportCorrectionList correctionList); @Override LocalDate extractReceiptDate(SourceScJudgment sourceJudgment, ImportCorrectionList correctionList); @Override List<String> extractLowerCourtJudgments(SourceScJudgment sourceJudgment, ImportCorrectionList correctionList); @Override MeansOfAppeal extractMeansOfAppeal(SourceScJudgment sourceJudgment, ImportCorrectionList correctionList); @Override JudgmentResult extractJudgmentResult(SourceScJudgment sourceJudgment, ImportCorrectionList correctionList); @Override String extractSourceJudgmentId(SourceScJudgment sourceJudgment, ImportCorrectionList correctionList); @Override String extractSourceJudgmentUrl(SourceScJudgment sourceJudgment, ImportCorrectionList correctionList); @Override SourceCode getSourceCode(); @Override void convertSpecific(SupremeCourtJudgment judgment, SourceScJudgment sourceJudgment, ImportCorrectionList correctionList); @Autowired void setScJudgmentFormCreator(ScJudgmentFormCreator scJudgmentFormCreator); @Autowired void setScChamberNameNormalizer(ScChamberNameNormalizer scChamberNameNormalizer); @Autowired void setScChamberCreator(ScChamberCreator scChamberCreator); @Autowired void setScJudgmentFormConverter(ScJudgmentFormConverter scJudgmentFormConverter); @Autowired void setScJudgmentFormNameNormalizer(ScJudgmentFormNameNormalizer scJudgmentFormNameNormalizer); @Autowired void setScChamberDivisionCreator(ScChamberDivisionCreator scChamberDivisionCreator); @Autowired void setJudgmentMeansOfAppealCreator(JudgmentMeansOfAppealCreator judgmentMeansOfAppealCreator); @Autowired void setJudgmentResultCreator(JudgmentResultCreator judgmentResultCreator); @Autowired void setSourceJudgeExtractorHelper(SourceJudgeExtractorHelper sourceJudgeExtractorHelper); }
SourceScJudgmentExtractor implements JudgmentDataExtractor<SupremeCourtJudgment, SourceScJudgment> { @Override public List<CourtCase> extractCourtCases(SourceScJudgment sourceJudgment, ImportCorrectionList correctionList) { return Lists.newArrayList(new CourtCase(sourceJudgment.getCaseNumber())); }  @Override SupremeCourtJudgment createNewJudgment(); @Override List<CourtCase> extractCourtCases(SourceScJudgment sourceJudgment, ImportCorrectionList correctionList); @Override JudgmentTextContent extractTextContent(SourceScJudgment sourceJudgment, ImportCorrectionList correctionList); @Override DateTime extractPublicationDate(SourceScJudgment sourceJudgment, ImportCorrectionList correctionList); @Override String extractPublisher(SourceScJudgment sourceJudgment, ImportCorrectionList correctionList); @Override String extractReviser(SourceScJudgment sourceJudgment, ImportCorrectionList correctionList); @Override List<Judge> extractJudges(SourceScJudgment sourceJudgment, ImportCorrectionList correctionList); @Override List<JudgmentReferencedRegulation> extractReferencedRegulations(SourceScJudgment sourceJudgment, ImportCorrectionList correctionList); @Override JudgmentType extractJudgmentType(SourceScJudgment sourceJudgment, ImportCorrectionList correctionList); @Override List<String> extractLegalBases(SourceScJudgment sourceJudgment, ImportCorrectionList correctionList); @Override String extractSummary(SourceScJudgment sourceJudgment, ImportCorrectionList correctionList); @Override String extractDecision(SourceScJudgment sourceJudgment, ImportCorrectionList correctionList); @Override List<String> extractCourtReporters(SourceScJudgment sourceJudgment, ImportCorrectionList correctionList); @Override LocalDate extractJudgmentDate(SourceScJudgment sourceJudgment, ImportCorrectionList correctionList); @Override LocalDate extractReceiptDate(SourceScJudgment sourceJudgment, ImportCorrectionList correctionList); @Override List<String> extractLowerCourtJudgments(SourceScJudgment sourceJudgment, ImportCorrectionList correctionList); @Override MeansOfAppeal extractMeansOfAppeal(SourceScJudgment sourceJudgment, ImportCorrectionList correctionList); @Override JudgmentResult extractJudgmentResult(SourceScJudgment sourceJudgment, ImportCorrectionList correctionList); @Override String extractSourceJudgmentId(SourceScJudgment sourceJudgment, ImportCorrectionList correctionList); @Override String extractSourceJudgmentUrl(SourceScJudgment sourceJudgment, ImportCorrectionList correctionList); @Override SourceCode getSourceCode(); @Override void convertSpecific(SupremeCourtJudgment judgment, SourceScJudgment sourceJudgment, ImportCorrectionList correctionList); @Autowired void setScJudgmentFormCreator(ScJudgmentFormCreator scJudgmentFormCreator); @Autowired void setScChamberNameNormalizer(ScChamberNameNormalizer scChamberNameNormalizer); @Autowired void setScChamberCreator(ScChamberCreator scChamberCreator); @Autowired void setScJudgmentFormConverter(ScJudgmentFormConverter scJudgmentFormConverter); @Autowired void setScJudgmentFormNameNormalizer(ScJudgmentFormNameNormalizer scJudgmentFormNameNormalizer); @Autowired void setScChamberDivisionCreator(ScChamberDivisionCreator scChamberDivisionCreator); @Autowired void setJudgmentMeansOfAppealCreator(JudgmentMeansOfAppealCreator judgmentMeansOfAppealCreator); @Autowired void setJudgmentResultCreator(JudgmentResultCreator judgmentResultCreator); @Autowired void setSourceJudgeExtractorHelper(SourceJudgeExtractorHelper sourceJudgeExtractorHelper);  }