@Test public void search_CHECK_SUPREME_COURT_RESULT() { JudgmentCriteria criteria = JudgmentCriteriaBuilder.create().withCaseNumber("supremeCaseNumber").build(); SearchResults<JudgmentSearchResult> results = judgmentSearchService.search(criteria, null); JudgmentSearchResult result = fetchAndAssertSingleSearchResult(results); assertEquals(21, result.getId()); assertEquals(12l, result.getScJudgmentFormId().longValue()); assertEquals("Postanowienie SN", result.getScJudgmentFormName()); assertEquals(PersonnelType.JOINED_CHAMBERS,result.getScPersonnelType()); assertTrue(result.getScCourtChambers().contains(new SupremeCourtChamberResult(11, "Izba Cywilna"))); assertTrue(result.getScCourtChambers().contains(new SupremeCourtChamberResult(12, "Izba Pracy"))); assertEquals(111l, result.getScCourtDivisionId().longValue()); assertEquals("Wydział III", result.getScCourtDivisionName()); assertEquals(11l, result.getScCourtDivisionsChamberId().longValue()); assertEquals("Izba Cywilna", result.getScCourtDivisionsChamberName()); }
@Override public SearchResults<JudgmentSearchResult> search(JudgmentCriteria criteria, Paging paging) { SolrQuery solrQuery = queryFactory.createQuery(criteria, paging); QueryResponse response = null; try { response = solrServer.query(solrQuery); } catch (SolrServerException e) { e.printStackTrace(); return new SearchResults<JudgmentSearchResult>(); } SearchResults<JudgmentSearchResult> results = resultsTranslator.translate(response); return results; }
JudgmentSearchService implements SearchService<JudgmentSearchResult, JudgmentCriteria> { @Override public SearchResults<JudgmentSearchResult> search(JudgmentCriteria criteria, Paging paging) { SolrQuery solrQuery = queryFactory.createQuery(criteria, paging); QueryResponse response = null; try { response = solrServer.query(solrQuery); } catch (SolrServerException e) { e.printStackTrace(); return new SearchResults<JudgmentSearchResult>(); } SearchResults<JudgmentSearchResult> results = resultsTranslator.translate(response); return results; } }
JudgmentSearchService implements SearchService<JudgmentSearchResult, JudgmentCriteria> { @Override public SearchResults<JudgmentSearchResult> search(JudgmentCriteria criteria, Paging paging) { SolrQuery solrQuery = queryFactory.createQuery(criteria, paging); QueryResponse response = null; try { response = solrServer.query(solrQuery); } catch (SolrServerException e) { e.printStackTrace(); return new SearchResults<JudgmentSearchResult>(); } SearchResults<JudgmentSearchResult> results = resultsTranslator.translate(response); return results; }  }
JudgmentSearchService implements SearchService<JudgmentSearchResult, JudgmentCriteria> { @Override public SearchResults<JudgmentSearchResult> search(JudgmentCriteria criteria, Paging paging) { SolrQuery solrQuery = queryFactory.createQuery(criteria, paging); QueryResponse response = null; try { response = solrServer.query(solrQuery); } catch (SolrServerException e) { e.printStackTrace(); return new SearchResults<JudgmentSearchResult>(); } SearchResults<JudgmentSearchResult> results = resultsTranslator.translate(response); return results; }  @Override SearchResults<JudgmentSearchResult> search(JudgmentCriteria criteria,
            Paging paging); }
JudgmentSearchService implements SearchService<JudgmentSearchResult, JudgmentCriteria> { @Override public SearchResults<JudgmentSearchResult> search(JudgmentCriteria criteria, Paging paging) { SolrQuery solrQuery = queryFactory.createQuery(criteria, paging); QueryResponse response = null; try { response = solrServer.query(solrQuery); } catch (SolrServerException e) { e.printStackTrace(); return new SearchResults<JudgmentSearchResult>(); } SearchResults<JudgmentSearchResult> results = resultsTranslator.translate(response); return results; }  @Override SearchResults<JudgmentSearchResult> search(JudgmentCriteria criteria,
            Paging paging);  }