@Test public void testCreateCategoryFilter() throws ApiException { when(classifyApi.createCategoryFilter(eq("12"), eq(ftoString), eq(NOT_NULL_RETINA))).thenReturn(cf); CategoryFilter result = classifyRetinaApi.createCategoryFilter("12", ftoString); assertTrue(result.getCategoryName().equals("12")); assertTrue(result.getPositions().size() == 3); }
@Override public CategoryFilter createCategoryFilter(String filter_name, String body) throws ApiException { if (isEmpty(filter_name) || body ==null) { throw new IllegalArgumentException(NULL_TEXT_MSG); } LOG.debug("Retrieve CategoryFilter: " + body); return this.api.createCategoryFilter(filter_name, body, retinaName); }
ClassifyRetinaApiImpl extends BaseRetinaApi implements Classify { @Override public CategoryFilter createCategoryFilter(String filter_name, String body) throws ApiException { if (isEmpty(filter_name) || body ==null) { throw new IllegalArgumentException(NULL_TEXT_MSG); } LOG.debug("Retrieve CategoryFilter: " + body); return this.api.createCategoryFilter(filter_name, body, retinaName); } }
ClassifyRetinaApiImpl extends BaseRetinaApi implements Classify { @Override public CategoryFilter createCategoryFilter(String filter_name, String body) throws ApiException { if (isEmpty(filter_name) || body ==null) { throw new IllegalArgumentException(NULL_TEXT_MSG); } LOG.debug("Retrieve CategoryFilter: " + body); return this.api.createCategoryFilter(filter_name, body, retinaName); } ClassifyRetinaApiImpl(String apiKey, String basePath, String retinaName);   ClassifyRetinaApiImpl(final ClassifyApi api, String retinaName); }
ClassifyRetinaApiImpl extends BaseRetinaApi implements Classify { @Override public CategoryFilter createCategoryFilter(String filter_name, String body) throws ApiException { if (isEmpty(filter_name) || body ==null) { throw new IllegalArgumentException(NULL_TEXT_MSG); } LOG.debug("Retrieve CategoryFilter: " + body); return this.api.createCategoryFilter(filter_name, body, retinaName); } ClassifyRetinaApiImpl(String apiKey, String basePath, String retinaName);   ClassifyRetinaApiImpl(final ClassifyApi api, String retinaName); @Override CategoryFilter createCategoryFilter(String filter_name, String body); }
ClassifyRetinaApiImpl extends BaseRetinaApi implements Classify { @Override public CategoryFilter createCategoryFilter(String filter_name, String body) throws ApiException { if (isEmpty(filter_name) || body ==null) { throw new IllegalArgumentException(NULL_TEXT_MSG); } LOG.debug("Retrieve CategoryFilter: " + body); return this.api.createCategoryFilter(filter_name, body, retinaName); } ClassifyRetinaApiImpl(String apiKey, String basePath, String retinaName);   ClassifyRetinaApiImpl(final ClassifyApi api, String retinaName); @Override CategoryFilter createCategoryFilter(String filter_name, String body);  }