use of com.ibm.watson.developer_cloud.language_translator.v2.model.IdentifiableLanguage in project java-sdk by watson-developer-cloud.
the class LanguageTranslatorTest method testGetIdentifiableLanguages.
/**
* Test Get Identifiable languages.
*
* @throws InterruptedException the interrupted exception
*/
@Test
public void testGetIdentifiableLanguages() throws InterruptedException {
server.enqueue(jsonResponse(identifiableLanguages));
final List<IdentifiableLanguage> languages = service.listIdentifiableLanguages().execute().getLanguages();
final RecordedRequest request = server.takeRequest();
assertEquals(IDENTIFIABLE_LANGUAGES_PATH, request.getPath());
assertEquals(GSON.toJson(languages), GSON.toJson(identifiableLanguages.get("languages")));
}
Aggregations