fix(translate): correct url in testmod

This commit is contained in:
Johannes Frohnmeyer 2024-05-11 17:53:28 +02:00
parent 3bc7df7089
commit b4f1ca22f5
Signed by: Johannes
GPG Key ID: E76429612C2929F4
1 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ public class TestEntrypoint implements ModInitializer {
}
{
LibreTranslateService ts = LibreTranslateService.get("https://translate.argosopentech.com");
LibreTranslateService ts = LibreTranslateService.get("https://libretranslate.com");
LibJf.LOGGER.info("Testing LibreTranslate");
final String sourceEN = "Hello, World!";
assertEqual("en", ts.detect(sourceEN).getIdentifier());
@ -33,6 +33,6 @@ public class TestEntrypoint implements ModInitializer {
private static void assertEqual(Object o1, Object o2) {
if (!Objects.equals(o1, o2))
throw new AssertionError("Assertion not met: expected " + o1 + " but got " + o2);
throw new RuntimeException("Assertion not met: expected " + o1 + " but got " + o2);
}
}