fix(translate): correct url in testmod
This commit is contained in:
parent
3bc7df7089
commit
b4f1ca22f5
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue