21
21
import com .ibm .watson .natural_language_understanding .v1 .model .AnalysisResults ;
22
22
import com .ibm .watson .natural_language_understanding .v1 .model .AnalyzeOptions ;
23
23
import com .ibm .watson .natural_language_understanding .v1 .model .CategoriesModel ;
24
+ import com .ibm .watson .natural_language_understanding .v1 .model .CategoriesModelList ;
24
25
import com .ibm .watson .natural_language_understanding .v1 .model .CategoriesOptions ;
25
26
import com .ibm .watson .natural_language_understanding .v1 .model .ClassificationsModel ;
26
27
import com .ibm .watson .natural_language_understanding .v1 .model .ClassificationsOptions ;
41
42
import com .ibm .watson .natural_language_understanding .v1 .model .GetSentimentModelOptions ;
42
43
import com .ibm .watson .natural_language_understanding .v1 .model .KeywordsOptions ;
43
44
import com .ibm .watson .natural_language_understanding .v1 .model .ListCategoriesModelsOptions ;
44
- import com .ibm .watson .natural_language_understanding .v1 .model .ListCategoriesModelsResponse ;
45
45
import com .ibm .watson .natural_language_understanding .v1 .model .ListClassificationsModelsOptions ;
46
46
import com .ibm .watson .natural_language_understanding .v1 .model .ListClassificationsModelsResponse ;
47
47
import com .ibm .watson .natural_language_understanding .v1 .model .ListModelsOptions ;
@@ -705,7 +705,7 @@ public void testCreateCategoriesModelNoOptions() throws Throwable {
705
705
public void testListCategoriesModelsWOptions () throws Throwable {
706
706
// Schedule some responses.
707
707
String mockResponseBody =
708
- "{\" models\" : [{\" models \" : [{ \" name\" : \" name\" , \" user_metadata\" : {\" mapKey\" : {\" anyKey\" : \" anyValue\" }}, \" language\" : \" language\" , \" description\" : \" description\" , \" model_version\" : \" modelVersion\" , \" workspace_id\" : \" workspaceId\" , \" version_description\" : \" versionDescription\" , \" features\" : [\" features\" ], \" status\" : \" starting\" , \" model_id\" : \" modelId\" , \" created\" : \" 2019-01-01T12:00:00.000Z\" , \" notices\" : [{\" message\" : \" message\" }], \" last_trained\" : \" 2019-01-01T12:00:00.000Z\" , \" last_deployed\" : \" 2019-01-01T12:00:00.000Z\" }] }]}" ;
708
+ "{\" models\" : [{\" name\" : \" name\" , \" user_metadata\" : {\" mapKey\" : {\" anyKey\" : \" anyValue\" }}, \" language\" : \" language\" , \" description\" : \" description\" , \" model_version\" : \" modelVersion\" , \" workspace_id\" : \" workspaceId\" , \" version_description\" : \" versionDescription\" , \" features\" : [\" features\" ], \" status\" : \" starting\" , \" model_id\" : \" modelId\" , \" created\" : \" 2019-01-01T12:00:00.000Z\" , \" notices\" : [{\" message\" : \" message\" }], \" last_trained\" : \" 2019-01-01T12:00:00.000Z\" , \" last_deployed\" : \" 2019-01-01T12:00:00.000Z\" }]}" ;
709
709
String listCategoriesModelsPath = "/v1/models/categories" ;
710
710
711
711
server .enqueue (
@@ -721,12 +721,12 @@ public void testListCategoriesModelsWOptions() throws Throwable {
721
721
new ListCategoriesModelsOptions ();
722
722
723
723
// Invoke operation with valid options model (positive test)
724
- Response <ListCategoriesModelsResponse > response =
724
+ Response <CategoriesModelList > response =
725
725
naturalLanguageUnderstandingService
726
726
.listCategoriesModels (listCategoriesModelsOptionsModel )
727
727
.execute ();
728
728
assertNotNull (response );
729
- ListCategoriesModelsResponse responseObj = response .getResult ();
729
+ CategoriesModelList responseObj = response .getResult ();
730
730
assertNotNull (responseObj );
731
731
732
732
// Verify the contents of the request
0 commit comments