@Test public void getSimilarTermsForBulkExpressionContextTest_sparsityFingerprint() throws ApiException, JsonProcessingException { int count = 5; boolean getFingerprint = false; int contextId = 0; PosType posType = PosType.NOUN; Double sparsity = 0.5; List<List<Term>> listOfTerms = new ArrayList<>(); listOfTerms.add(createTerms(count)); listOfTerms.add(createTerms(count)); when(expressionsApi.getSimilarTermsForBulkExpressionContext(eq(TERM_1_TEXT_1_JSON), eq(contextId), eq(posType.name()), eq(getFingerprint), eq(NOT_NULL_RETINA), isNull(Integer.class), isNull(Integer.class), eq(sparsity))).thenReturn(listOfTerms); List<List<Term>> actualListOfTerms = expressionsRetinaApiImpl.getSimilarTermsBulk(contextId, posType, getFingerprint, sparsity, TERM_1, TEXT_1); assertEquals(listOfTerms.size(), actualListOfTerms.size()); verify(expressionsApi, times(1)).getSimilarTermsForBulkExpressionContext(eq(TERM_1_TEXT_1_JSON), eq(contextId), eq(posType.name()), eq(getFingerprint), eq(NOT_NULL_RETINA), isNull(Integer.class), isNull(Integer.class), eq(sparsity)); }
@Override public List<List<Term>> getSimilarTermsBulk(Integer contextId, PosType posType, Pagination pagination, Boolean includeFingerprint, Double sparsity, Model... models) throws JsonProcessingException, ApiException { validateRequiredModels(models); return getSimilarTermsBulk(contextId, posType, pagination, includeFingerprint, sparsity, toJson(models)); }
ExpressionsRetinaApiImpl extends BaseRetinaApi implements Expressions { @Override public List<List<Term>> getSimilarTermsBulk(Integer contextId, PosType posType, Pagination pagination, Boolean includeFingerprint, Double sparsity, Model... models) throws JsonProcessingException, ApiException { validateRequiredModels(models); return getSimilarTermsBulk(contextId, posType, pagination, includeFingerprint, sparsity, toJson(models)); } }
ExpressionsRetinaApiImpl extends BaseRetinaApi implements Expressions { @Override public List<List<Term>> getSimilarTermsBulk(Integer contextId, PosType posType, Pagination pagination, Boolean includeFingerprint, Double sparsity, Model... models) throws JsonProcessingException, ApiException { validateRequiredModels(models); return getSimilarTermsBulk(contextId, posType, pagination, includeFingerprint, sparsity, toJson(models)); } ExpressionsRetinaApiImpl(String apiKey, String basePath, String retinaName);   ExpressionsRetinaApiImpl(ExpressionsApi expressionsApi, String retinaName); }
ExpressionsRetinaApiImpl extends BaseRetinaApi implements Expressions { @Override public List<List<Term>> getSimilarTermsBulk(Integer contextId, PosType posType, Pagination pagination, Boolean includeFingerprint, Double sparsity, Model... models) throws JsonProcessingException, ApiException { validateRequiredModels(models); return getSimilarTermsBulk(contextId, posType, pagination, includeFingerprint, sparsity, toJson(models)); } ExpressionsRetinaApiImpl(String apiKey, String basePath, String retinaName);   ExpressionsRetinaApiImpl(ExpressionsApi expressionsApi, String retinaName); @Override List<List<Term>> getSimilarTermsBulk(Integer contextId, PosType posType, Pagination pagination,
            Boolean includeFingerprint, Double sparsity, Model... models); @Override List<Fingerprint> resolveBulk(Double sparsity, Model... models); @Override List<List<Context>> getContextsBulk(Pagination pagination, Boolean includeFingerprint, Double sparsity,
            Model... models); @Override Fingerprint resolve(Double sparsity, Model model); @Override List<Context> getContexts(Pagination pagination, Boolean includeFingerprint, Double sparsity, Model model); @Override List<Term> getSimilarTerms(Integer contextId, PosType posType, Pagination pagination,
            Boolean includeFingerprint, Double sparsity, Model model); @Override List<List<Term>> getSimilarTermsBulk(Integer contextId, PosType posType, Boolean includeFingerprint,
            Double sparsity, Model... models); @Override List<List<Term>> getSimilarTermsBulk(Integer contextId, PosType posType, Double sparsity, Model... models); @Override List<List<Term>> getSimilarTermsBulk(Integer contextId, PosType posType, Boolean includeFingerprint,
            Model... models); @Override List<List<Term>> getSimilarTermsBulk(Integer contextId, PosType posType, Model... models); @Override List<Fingerprint> resolveBulk(Model... models); @Override List<List<Context>> getContextsBulk(Boolean includeFingerprint, Double sparsity, Model... models); @Override List<List<Context>> getContextsBulk(Double sparsity, Model... models); @Override List<List<Context>> getContextsBulk(Boolean includeFingerprint, Model... models); @Override List<List<Context>> getContextsBulk(Model... models); @Override Fingerprint resolve(Model model); @Override List<Context> getContexts(Boolean includeFingerprint, Double sparsity, Model model); @Override List<Context> getContexts(Double sparsity, Model model); @Override List<Context> getContexts(Boolean includeFingerprint, Model model); @Override List<Context> getContexts(Model model); @Override List<Term> getSimilarTerms(Integer contextId, PosType posType, Boolean includeFingerprint, Double sparsity,
            Model model); @Override List<Term> getSimilarTerms(Integer contextId, PosType posType, Double sparsity, Model model); @Override List<Term> getSimilarTerms(Integer contextId, PosType posType, Boolean includeFingerprint, Model model); @Override List<Term> getSimilarTerms(Integer contextId, PosType posType, Model model); @Override List<List<Term>> getSimilarTermsBulk(Integer contextId, PosType posType, Pagination pagination,
            Boolean includeFingerprint, Double sparsity, String jsonModel); @Override List<Fingerprint> resolveBulk(Double sparsity, String jsonModels); @Override List<List<Context>> getContextsBulk(Pagination pagination, Boolean includeFingerprint, Double sparsity,
            String jsonModels); @Override Fingerprint resolve(Double sparsity, String jsonModel); @Override List<Context> getContexts(Pagination pagination, Boolean includeFingerprint, Double sparsity,
            String jsonModel); @Override List<Term> getSimilarTerms(Integer contextId, PosType posType, Pagination pagination,
            Boolean includeFingerprint, Double sparsity, String jsonModel); @Override List<List<Term>> getSimilarTermsBulk(Integer contextId, PosType posType, Boolean includeFingerprint,
            Double sparsity, String jsonModel); @Override List<List<Term>> getSimilarTermsBulk(Integer contextId, PosType posType, Double sparsity, String jsonModel); @Override List<List<Term>> getSimilarTermsBulk(Integer contextId, PosType posType, Boolean includeFingerprint,
            String jsonModel); @Override List<List<Term>> getSimilarTermsBulk(Integer contextId, PosType posType, String jsonModel); @Override List<Fingerprint> resolveBulk(String jsonModel); @Override List<List<Context>> getContextsBulk(Boolean includeFingerprint, Double sparsity, String jsonModel); @Override List<List<Context>> getContextsBulk(Double sparsity, String jsonModel); @Override List<List<Context>> getContextsBulk(Boolean includeFingerprint, String jsonModel); @Override List<List<Context>> getContextsBulk(String jsonModel); @Override Fingerprint resolve(String jsonModel); @Override List<Context> getContexts(Boolean includeFingerprint, Double sparsity, String jsonModel); @Override List<Context> getContexts(Double sparsity, String jsonModel); @Override List<Context> getContexts(Boolean includeFingerprint, String jsonModel); @Override List<Context> getContexts(String jsonModel); @Override List<Term> getSimilarTerms(Integer contextId, PosType posType, Boolean includeFingerprint, Double sparsity,
            String jsonModel); @Override List<Term> getSimilarTerms(Integer contextId, PosType posType, Double sparsity, String jsonModel); @Override List<Term> getSimilarTerms(Integer contextId, PosType posType, Boolean includeFingerprint, String jsonModel); @Override List<Term> getSimilarTerms(Integer contextId, PosType posType, String jsonModel); @Override List<List<Term>> getSimilarTermsBulk(PosType posType, Model... models); @Override List<List<Term>> getSimilarTermsBulk(Integer contextId, Model... models); @Override List<List<Term>> getSimilarTermsBulk(Model... models); @Override List<List<Term>> getSimilarTermsBulk(PosType posType, String jsonModel); @Override List<List<Term>> getSimilarTermsBulk(Integer contextId, String jsonModel); @Override List<List<Term>> getSimilarTermsBulk(String jsonModel); @Override List<Term> getSimilarTerms(PosType posType, Model model); @Override List<Term> getSimilarTerms(Integer contextId, Model model); @Override List<Term> getSimilarTerms(Model model); @Override List<Term> getSimilarTerms(PosType posType, String jsonModel); @Override List<Term> getSimilarTerms(Integer contextId, String jsonModel); @Override List<Term> getSimilarTerms(String jsonModel); }
ExpressionsRetinaApiImpl extends BaseRetinaApi implements Expressions { @Override public List<List<Term>> getSimilarTermsBulk(Integer contextId, PosType posType, Pagination pagination, Boolean includeFingerprint, Double sparsity, Model... models) throws JsonProcessingException, ApiException { validateRequiredModels(models); return getSimilarTermsBulk(contextId, posType, pagination, includeFingerprint, sparsity, toJson(models)); } ExpressionsRetinaApiImpl(String apiKey, String basePath, String retinaName);   ExpressionsRetinaApiImpl(ExpressionsApi expressionsApi, String retinaName); @Override List<List<Term>> getSimilarTermsBulk(Integer contextId, PosType posType, Pagination pagination,
            Boolean includeFingerprint, Double sparsity, Model... models); @Override List<Fingerprint> resolveBulk(Double sparsity, Model... models); @Override List<List<Context>> getContextsBulk(Pagination pagination, Boolean includeFingerprint, Double sparsity,
            Model... models); @Override Fingerprint resolve(Double sparsity, Model model); @Override List<Context> getContexts(Pagination pagination, Boolean includeFingerprint, Double sparsity, Model model); @Override List<Term> getSimilarTerms(Integer contextId, PosType posType, Pagination pagination,
            Boolean includeFingerprint, Double sparsity, Model model); @Override List<List<Term>> getSimilarTermsBulk(Integer contextId, PosType posType, Boolean includeFingerprint,
            Double sparsity, Model... models); @Override List<List<Term>> getSimilarTermsBulk(Integer contextId, PosType posType, Double sparsity, Model... models); @Override List<List<Term>> getSimilarTermsBulk(Integer contextId, PosType posType, Boolean includeFingerprint,
            Model... models); @Override List<List<Term>> getSimilarTermsBulk(Integer contextId, PosType posType, Model... models); @Override List<Fingerprint> resolveBulk(Model... models); @Override List<List<Context>> getContextsBulk(Boolean includeFingerprint, Double sparsity, Model... models); @Override List<List<Context>> getContextsBulk(Double sparsity, Model... models); @Override List<List<Context>> getContextsBulk(Boolean includeFingerprint, Model... models); @Override List<List<Context>> getContextsBulk(Model... models); @Override Fingerprint resolve(Model model); @Override List<Context> getContexts(Boolean includeFingerprint, Double sparsity, Model model); @Override List<Context> getContexts(Double sparsity, Model model); @Override List<Context> getContexts(Boolean includeFingerprint, Model model); @Override List<Context> getContexts(Model model); @Override List<Term> getSimilarTerms(Integer contextId, PosType posType, Boolean includeFingerprint, Double sparsity,
            Model model); @Override List<Term> getSimilarTerms(Integer contextId, PosType posType, Double sparsity, Model model); @Override List<Term> getSimilarTerms(Integer contextId, PosType posType, Boolean includeFingerprint, Model model); @Override List<Term> getSimilarTerms(Integer contextId, PosType posType, Model model); @Override List<List<Term>> getSimilarTermsBulk(Integer contextId, PosType posType, Pagination pagination,
            Boolean includeFingerprint, Double sparsity, String jsonModel); @Override List<Fingerprint> resolveBulk(Double sparsity, String jsonModels); @Override List<List<Context>> getContextsBulk(Pagination pagination, Boolean includeFingerprint, Double sparsity,
            String jsonModels); @Override Fingerprint resolve(Double sparsity, String jsonModel); @Override List<Context> getContexts(Pagination pagination, Boolean includeFingerprint, Double sparsity,
            String jsonModel); @Override List<Term> getSimilarTerms(Integer contextId, PosType posType, Pagination pagination,
            Boolean includeFingerprint, Double sparsity, String jsonModel); @Override List<List<Term>> getSimilarTermsBulk(Integer contextId, PosType posType, Boolean includeFingerprint,
            Double sparsity, String jsonModel); @Override List<List<Term>> getSimilarTermsBulk(Integer contextId, PosType posType, Double sparsity, String jsonModel); @Override List<List<Term>> getSimilarTermsBulk(Integer contextId, PosType posType, Boolean includeFingerprint,
            String jsonModel); @Override List<List<Term>> getSimilarTermsBulk(Integer contextId, PosType posType, String jsonModel); @Override List<Fingerprint> resolveBulk(String jsonModel); @Override List<List<Context>> getContextsBulk(Boolean includeFingerprint, Double sparsity, String jsonModel); @Override List<List<Context>> getContextsBulk(Double sparsity, String jsonModel); @Override List<List<Context>> getContextsBulk(Boolean includeFingerprint, String jsonModel); @Override List<List<Context>> getContextsBulk(String jsonModel); @Override Fingerprint resolve(String jsonModel); @Override List<Context> getContexts(Boolean includeFingerprint, Double sparsity, String jsonModel); @Override List<Context> getContexts(Double sparsity, String jsonModel); @Override List<Context> getContexts(Boolean includeFingerprint, String jsonModel); @Override List<Context> getContexts(String jsonModel); @Override List<Term> getSimilarTerms(Integer contextId, PosType posType, Boolean includeFingerprint, Double sparsity,
            String jsonModel); @Override List<Term> getSimilarTerms(Integer contextId, PosType posType, Double sparsity, String jsonModel); @Override List<Term> getSimilarTerms(Integer contextId, PosType posType, Boolean includeFingerprint, String jsonModel); @Override List<Term> getSimilarTerms(Integer contextId, PosType posType, String jsonModel); @Override List<List<Term>> getSimilarTermsBulk(PosType posType, Model... models); @Override List<List<Term>> getSimilarTermsBulk(Integer contextId, Model... models); @Override List<List<Term>> getSimilarTermsBulk(Model... models); @Override List<List<Term>> getSimilarTermsBulk(PosType posType, String jsonModel); @Override List<List<Term>> getSimilarTermsBulk(Integer contextId, String jsonModel); @Override List<List<Term>> getSimilarTermsBulk(String jsonModel); @Override List<Term> getSimilarTerms(PosType posType, Model model); @Override List<Term> getSimilarTerms(Integer contextId, Model model); @Override List<Term> getSimilarTerms(Model model); @Override List<Term> getSimilarTerms(PosType posType, String jsonModel); @Override List<Term> getSimilarTerms(Integer contextId, String jsonModel); @Override List<Term> getSimilarTerms(String jsonModel);  }