/** * List classifiers. * * Returns an empty array if no classifiers are available. * * @return a {@link ServiceCall} with a response type of {@link ClassifierList} */ public ServiceCall<ClassifierList> listClassifiers() { return listClassifiers(null); }
/** * List classifiers. * * This method is here for backwards-compatibility with the old version of getClassifiers, which has been renamed * to listClassifiers. * * @return the classifier list */ public ServiceCall<ClassifierList> getClassifiers() { return listClassifiers(); } }
/** * List classifiers. * * This method is here for backwards-compatibility with the old version of getClassifiers, which has been renamed * to listClassifiers. * * @return the classifier list */ public ServiceCall<ClassifierList> getClassifiers() { return listClassifiers(); } }
/** * List classifiers. * * Returns an empty array if no classifiers are available. * * @return a {@link ServiceCall} with a response type of {@link ClassifierList} */ public ServiceCall<ClassifierList> listClassifiers() { return listClassifiers(null); }
/** * Test list classifiers. */ @Test public void cListClassifiers() { ListClassifiersOptions listOptions = new ListClassifiersOptions.Builder() .build(); final ClassifierList classifiers = service.listClassifiers(listOptions).execute(); assertNotNull(classifiers); // #324: Classifiers may be empty, because of other tests interfering. // The build should not fail here, because this is out of our control. Assume.assumeFalse(classifiers.getClassifiers().isEmpty()); }
/** * Test get classifiers. * * @throws InterruptedException the interrupted exception */ @Test public void testGetClassifiers() throws InterruptedException { server.enqueue(jsonResponse(classifiers)); final ClassifierList response = service.listClassifiers().execute(); final RecordedRequest request = server.takeRequest(); assertEquals(CLASSIFIERS_PATH, request.getPath()); assertEquals(classifiers, response); }