Add simple translate test
This commit is contained in:
parent
38d411ef9d
commit
b4f402ec19
@ -19,4 +19,10 @@ dependencies {
|
||||
download("https://gitlab.com/jfmods/LibJF/-/jobs/artifacts/master/raw/latest-dev.jar?job=build_test", "libjf")
|
||||
|
||||
modImplementation "com.terraformersmc:modmenu:2.0.0-beta.7"
|
||||
|
||||
testImplementation('org.junit.jupiter:junit-jupiter:5.6.2')
|
||||
}
|
||||
|
||||
test {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
|
@ -0,0 +1,14 @@
|
||||
package io.gitlab.jfronny.translater;
|
||||
|
||||
import io.gitlab.jfronny.translater.translation.GoogleService;
|
||||
import io.gitlab.jfronny.translater.translation.WurstGoogleBackend;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
public class GoogleBackendTest {
|
||||
@Test
|
||||
void simpleTranslate() {
|
||||
WurstGoogleBackend gb = new WurstGoogleBackend();
|
||||
assertEquals("Guten Morgen.", gb.translate("Good morning.", GoogleService.Language.GERMAN, GoogleService.Language.ENGLISH));
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user