use of com.cloud.api.response.ApiDiscoveryResponse in project cosmic by MissionCriticalCloud.
the class ApiDiscoveryTest method verifyListSingleApi.
@Test
public void verifyListSingleApi() throws Exception {
final ListResponse<ApiDiscoveryResponse> responses = (ListResponse<ApiDiscoveryResponse>) s_discoveryService.listApis(testUser, testApiName);
if (responses != null) {
final ApiDiscoveryResponse response = responses.getResponses().get(0);
assertTrue("No. of response items should be one", responses.getCount() == 1);
assertEquals("Error in api name", testApiName, response.getName());
assertEquals("Error in api description", testApiDescription, response.getDescription());
assertEquals("Error in api since", testApiSince, response.getSince());
assertEquals("Error in api isAsync", testApiAsync, response.getAsync());
}
}
Aggregations