@Test public void getTermTest_withfingerprint() throws ApiException { int count = 5; boolean getFingerprint = false; when( termApi.getTerm(eq(TERM), eq(getFingerprint), eq(NOT_NULL_RETINA), isNull(Integer.class), isNull(Integer.class))).thenReturn(createTerms(count)); List<Term> terms = termRetinaApiImpl.getTerm(TERM, getFingerprint); assertEquals(count, terms.size()); verify(termApi, times(1)).getTerm(eq(TERM), eq(getFingerprint), eq(NOT_NULL_RETINA), isNull(Integer.class), isNull(Integer.class)); }
@Override public List<Term> getTerm(String term, Pagination pagination, Boolean includeFingerprint) throws ApiException { pagination = initPagination(pagination); LOG.debug("Retrieve terms: " + term + " pagination: " + pagination.toString() + " include fingerprint: " + includeFingerprint); return api .getTerm(term, includeFingerprint, retinaName, pagination.getStartIndex(), pagination.getMaxResults()); }
TermsRetinaApiImpl extends BaseRetinaApi implements Terms { @Override public List<Term> getTerm(String term, Pagination pagination, Boolean includeFingerprint) throws ApiException { pagination = initPagination(pagination); LOG.debug("Retrieve terms: " + term + " pagination: " + pagination.toString() + " include fingerprint: " + includeFingerprint); return api .getTerm(term, includeFingerprint, retinaName, pagination.getStartIndex(), pagination.getMaxResults()); } }
TermsRetinaApiImpl extends BaseRetinaApi implements Terms { @Override public List<Term> getTerm(String term, Pagination pagination, Boolean includeFingerprint) throws ApiException { pagination = initPagination(pagination); LOG.debug("Retrieve terms: " + term + " pagination: " + pagination.toString() + " include fingerprint: " + includeFingerprint); return api .getTerm(term, includeFingerprint, retinaName, pagination.getStartIndex(), pagination.getMaxResults()); } TermsRetinaApiImpl(String apiKey, String basePath, String retinaName);   TermsRetinaApiImpl(TermsApi api, String retinaName); }
TermsRetinaApiImpl extends BaseRetinaApi implements Terms { @Override public List<Term> getTerm(String term, Pagination pagination, Boolean includeFingerprint) throws ApiException { pagination = initPagination(pagination); LOG.debug("Retrieve terms: " + term + " pagination: " + pagination.toString() + " include fingerprint: " + includeFingerprint); return api .getTerm(term, includeFingerprint, retinaName, pagination.getStartIndex(), pagination.getMaxResults()); } TermsRetinaApiImpl(String apiKey, String basePath, String retinaName);   TermsRetinaApiImpl(TermsApi api, String retinaName); @Override List<Context> getContexts(String term, Pagination pagination, Boolean includeFingerprint); @Override List<Term> getSimilarTerms(String term, Integer contextId, PosType posType, Pagination pagination,
            Boolean includeFingerprint); @Override List<Term> getTerm(String term, Pagination pagination, Boolean includeFingerprint); @Override List<Context> getContexts(String term, Boolean includeFingerprint); @Override List<Context> getContexts(String term); @Override List<Term> getSimilarTerms(String term, Integer contextId, PosType posType, Boolean includeFingerprint); @Override List<Term> getSimilarTerms(String term, Integer contextId, PosType posType); @Override List<Term> getTerm(String term, Boolean includeFingerprint); @Override List<Term> getTerm(String term); @Override List<Term> getAllTerms(Pagination pagination); @Override List<Term> getAllTerms(Pagination pagination, Boolean includeFingerprint); @Override List<Term> getSimilarTerms(String term); }
TermsRetinaApiImpl extends BaseRetinaApi implements Terms { @Override public List<Term> getTerm(String term, Pagination pagination, Boolean includeFingerprint) throws ApiException { pagination = initPagination(pagination); LOG.debug("Retrieve terms: " + term + " pagination: " + pagination.toString() + " include fingerprint: " + includeFingerprint); return api .getTerm(term, includeFingerprint, retinaName, pagination.getStartIndex(), pagination.getMaxResults()); } TermsRetinaApiImpl(String apiKey, String basePath, String retinaName);   TermsRetinaApiImpl(TermsApi api, String retinaName); @Override List<Context> getContexts(String term, Pagination pagination, Boolean includeFingerprint); @Override List<Term> getSimilarTerms(String term, Integer contextId, PosType posType, Pagination pagination,
            Boolean includeFingerprint); @Override List<Term> getTerm(String term, Pagination pagination, Boolean includeFingerprint); @Override List<Context> getContexts(String term, Boolean includeFingerprint); @Override List<Context> getContexts(String term); @Override List<Term> getSimilarTerms(String term, Integer contextId, PosType posType, Boolean includeFingerprint); @Override List<Term> getSimilarTerms(String term, Integer contextId, PosType posType); @Override List<Term> getTerm(String term, Boolean includeFingerprint); @Override List<Term> getTerm(String term); @Override List<Term> getAllTerms(Pagination pagination); @Override List<Term> getAllTerms(Pagination pagination, Boolean includeFingerprint); @Override List<Term> getSimilarTerms(String term);  }