Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Oct 14, 2023. It is now read-only.

Commit d1b49bf

Browse filesBrowse files
authored
test: translateTextWithApiKey test should use more stable example (#39)
1 parent 0264cf6 commit d1b49bf
Copy full SHA for d1b49bf

1 file changed

+2-2Lines changed: 2 additions & 2 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎google-cloud-translate/src/test/java/com/google/cloud/translate/it/ITTranslateTest.java‎

Copy file name to clipboardExpand all lines: google-cloud-translate/src/test/java/com/google/cloud/translate/it/ITTranslateTest.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ public void testDefaultCredentialsOverridesDefaultApiKey() {
159159
public void testTranslateTextWithApiKey() {
160160
Translate translate =
161161
RemoteTranslateHelper.create(TranslateOptions.getDefaultApiKey()).getOptions().getService();
162-
Translation translation = translate.translate("Hola");
163-
assertEquals("Hello", translation.getTranslatedText());
162+
Translation translation = translate.translate("ocho");
163+
assertEquals("eight", translation.getTranslatedText());
164164
assertEquals("es", translation.getSourceLanguage());
165165
}
166166
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.