Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit6eb88a1

Browse files
author
mmarzecki
committed
fixed-unit-tests
1 parent2f32a84 commit6eb88a1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎src/main/java/com/goxr3plus/speech/translator/GoogleTranslate.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public final class GoogleTranslate { //Class marked as final since all methods a
2525
/**
2626
* URL to query for Translation
2727
*/
28-
privatestaticfinalStringGOOGLE_TRANSLATE_URL ="https://translate.google.com/";
28+
privatestaticfinalStringGOOGLE_TRANSLATE_URL ="https://translate.googleapis.com/translate_a/single";
2929

3030
/**
3131
* Private to prevent instantiation

‎src/test/java/translator/TranslatorTest.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class TranslatorTest {
1414
publicvoidtestString()throwsIOException {
1515

1616
StringtranslatedText =GoogleTranslate.translate("Hola . Buenos días");
17-
StringexpecetedText ="Hi . GoodMorning";
17+
StringexpecetedText ="Hello . Goodmorning";
1818

1919
System.out.println(translatedText);
2020
assertTrue(translatedText.equals(expecetedText));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp