JPP: kaas talk fixed format unit test to use format with jvm guess tone
Some checks failed
Run test asserts / Test-Asserts (push) Failing after 45s

This commit is contained in:
Willem Cazander 2026-02-13 17:20:48 +01:00
parent 04d6d2e3b3
commit 3ff3676dc8

View file

@ -43,7 +43,7 @@ public class KaasTalkTextLocalizerTest {
Assertions.assertThrows(NullPointerException.class, () -> {
KaasTalkTextLocalizer.format(null);
});
Assertions.assertNotNull(KaasTalkTextLocalizer.formatToned(嘴ᗮᙿᗮ.English.class, ₜₓₜMissingAnnotationTest.class, "", ""));
Assertions.assertNotNull(KaasTalkTextLocalizer.format(ₜₓₜMissingAnnotationTest.class, "", ""));
}
@Test
@ -51,6 +51,7 @@ public class KaasTalkTextLocalizerTest {
String res = KaasTalkTextLocalizer.formatToned(嘴ᗮᙿᗮ.English.class, ₜₓₜMissingAnnotationTest.class, "foo", "bar");
Assertions.assertNotNull(res);
Assertions.assertTrue(res.contains("required"));
Assertions.assertTrue(res.contains("foo"));
}
@Test
@ -58,5 +59,6 @@ public class KaasTalkTextLocalizerTest {
String res = KaasTalkTextLocalizer.formatToned(嘴ᗮᙿᗮ.China.class, ₜₓₜMissingAnnotationTest.class, "foo", "bar");
Assertions.assertNotNull(res);
Assertions.assertTrue(res.contains("必需"));
Assertions.assertTrue(res.contains("bar"));
}
}