@Test public void getImageForExpressionTest_json() throws ApiException, JsonProcessingException { when(api.getImageForExpression(eq(TERM_1_JSON), eq(NOT_NULL_RETINA), isNull(Integer.class), isNull(String.class), isNull(String.class), isNull(Double.class))).thenReturn(new ByteArrayInputStream(new byte[1])); imageRetinaApiImpl.getImage(TERM_1_JSON); verify(api, times(1)).getImageForExpression(eq(TERM_1_JSON), eq(NOT_NULL_RETINA), isNull(Integer.class), isNull(String.class), isNull(String.class), isNull(Double.class)); }
@Override public ByteArrayInputStream getImage(Integer scalar, ImagePlotShape shape, ImageEncoding imageEncoding, Double sparsity, Model model) throws JsonProcessingException, ApiException { validateRequiredModels(model); return getImage(scalar, shape, imageEncoding, sparsity, model.toJson()); }
ImageRetinaApiImpl extends BaseRetinaApi implements Images { @Override public ByteArrayInputStream getImage(Integer scalar, ImagePlotShape shape, ImageEncoding imageEncoding, Double sparsity, Model model) throws JsonProcessingException, ApiException { validateRequiredModels(model); return getImage(scalar, shape, imageEncoding, sparsity, model.toJson()); } }
ImageRetinaApiImpl extends BaseRetinaApi implements Images { @Override public ByteArrayInputStream getImage(Integer scalar, ImagePlotShape shape, ImageEncoding imageEncoding, Double sparsity, Model model) throws JsonProcessingException, ApiException { validateRequiredModels(model); return getImage(scalar, shape, imageEncoding, sparsity, model.toJson()); } ImageRetinaApiImpl(String apiKey, String basePath, String retinaName);   ImageRetinaApiImpl(ImageApi api, String retinaName); }
ImageRetinaApiImpl extends BaseRetinaApi implements Images { @Override public ByteArrayInputStream getImage(Integer scalar, ImagePlotShape shape, ImageEncoding imageEncoding, Double sparsity, Model model) throws JsonProcessingException, ApiException { validateRequiredModels(model); return getImage(scalar, shape, imageEncoding, sparsity, model.toJson()); } ImageRetinaApiImpl(String apiKey, String basePath, String retinaName);   ImageRetinaApiImpl(ImageApi api, String retinaName); @Override List<Image> getImageBulk(Boolean includeFingerprint, Integer scalar, ImagePlotShape shape, Double sparsity,
            Model... models); @Override ByteArrayInputStream getImage(Integer scalar, ImagePlotShape shape, ImageEncoding imageEncoding,
            Double sparsity, Model model); @Override ByteArrayInputStream compare(Integer scalar, ImagePlotShape shape, ImageEncoding imageEncoding,
            Model model1, Model model2); @Override List<Image> getImageBulk(ImagePlotShape shape, Double sparsity, Model... models); @Override List<Image> getImageBulk(Model... models); @Override ByteArrayInputStream getImage(ImagePlotShape shape, Double sparsity, Model model); @Override ByteArrayInputStream getImage(Model model); @Override ByteArrayInputStream compare(ImagePlotShape shape, ImageEncoding imageEncoding, Model model1, Model model2); @Override ByteArrayInputStream compare(Model model1, Model model2); @Override List<Image> getImageBulk(Boolean includeFingerprint, Integer scalar, ImagePlotShape shape, Double sparsity,
            String jsonModel); @Override ByteArrayInputStream getImage(Integer scalar, ImagePlotShape shape, ImageEncoding imageEncoding,
            Double sparsity, String jsonModel); @Override ByteArrayInputStream compare(Integer scalar, ImagePlotShape shape, ImageEncoding imageEncoding,
            String jsonModel); @Override List<Image> getImageBulk(ImagePlotShape shape, Double sparsity, String jsonModels); @Override List<Image> getImageBulk(String jsonModels); @Override ByteArrayInputStream getImage(ImagePlotShape shape, Double sparsity, String jsonModels); @Override ByteArrayInputStream getImage(String jsonModels); @Override ByteArrayInputStream compare(ImagePlotShape shape, ImageEncoding imageEncoding, String jsonModels); @Override ByteArrayInputStream compare(String jsonModels); }
ImageRetinaApiImpl extends BaseRetinaApi implements Images { @Override public ByteArrayInputStream getImage(Integer scalar, ImagePlotShape shape, ImageEncoding imageEncoding, Double sparsity, Model model) throws JsonProcessingException, ApiException { validateRequiredModels(model); return getImage(scalar, shape, imageEncoding, sparsity, model.toJson()); } ImageRetinaApiImpl(String apiKey, String basePath, String retinaName);   ImageRetinaApiImpl(ImageApi api, String retinaName); @Override List<Image> getImageBulk(Boolean includeFingerprint, Integer scalar, ImagePlotShape shape, Double sparsity,
            Model... models); @Override ByteArrayInputStream getImage(Integer scalar, ImagePlotShape shape, ImageEncoding imageEncoding,
            Double sparsity, Model model); @Override ByteArrayInputStream compare(Integer scalar, ImagePlotShape shape, ImageEncoding imageEncoding,
            Model model1, Model model2); @Override List<Image> getImageBulk(ImagePlotShape shape, Double sparsity, Model... models); @Override List<Image> getImageBulk(Model... models); @Override ByteArrayInputStream getImage(ImagePlotShape shape, Double sparsity, Model model); @Override ByteArrayInputStream getImage(Model model); @Override ByteArrayInputStream compare(ImagePlotShape shape, ImageEncoding imageEncoding, Model model1, Model model2); @Override ByteArrayInputStream compare(Model model1, Model model2); @Override List<Image> getImageBulk(Boolean includeFingerprint, Integer scalar, ImagePlotShape shape, Double sparsity,
            String jsonModel); @Override ByteArrayInputStream getImage(Integer scalar, ImagePlotShape shape, ImageEncoding imageEncoding,
            Double sparsity, String jsonModel); @Override ByteArrayInputStream compare(Integer scalar, ImagePlotShape shape, ImageEncoding imageEncoding,
            String jsonModel); @Override List<Image> getImageBulk(ImagePlotShape shape, Double sparsity, String jsonModels); @Override List<Image> getImageBulk(String jsonModels); @Override ByteArrayInputStream getImage(ImagePlotShape shape, Double sparsity, String jsonModels); @Override ByteArrayInputStream getImage(String jsonModels); @Override ByteArrayInputStream compare(ImagePlotShape shape, ImageEncoding imageEncoding, String jsonModels); @Override ByteArrayInputStream compare(String jsonModels);  }