@Test public void search_CHECK_COMMON_COURT_RESULT() { JudgmentCriteria criteria = JudgmentCriteriaBuilder.create().withCaseNumber("III AUa 271/12").build(); SearchResults<JudgmentSearchResult> results = judgmentSearchService.search(criteria, null); JudgmentSearchResult result = fetchAndAssertSingleSearchResult(results); assertEquals(1961, result.getId()); assertEquals(1l, result.getCcCourtId().longValue()); assertEquals("15500000", result.getCcCourtCode()); assertEquals("Sąd Apelacyjny we Wrocławiu", result.getCcCourtName()); assertEquals(3l, result.getCcCourtDivisionId().longValue()); assertEquals("0001521", result.getCcCourtDivisionCode()); assertEquals("III Wydział Pracy i Ubezpieczeń Społecznych", result.getCcCourtDivisionName()); }
@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);  }