JPP: Renamed kaas talk to cake talk
All checks were successful
Run test asserts / Test-Asserts (push) Successful in 46s

This commit is contained in:
Willem Cazander 2026-03-22 14:28:24 +01:00
parent 95378bd1f2
commit ca4fc5619b
77 changed files with 858 additions and 863 deletions

View file

@ -30,30 +30,25 @@ package ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᒼᣔᑊᑉᓫ.ᐪᣔᒻᑊᑉ;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᒼᣔᑊᑉᓫ.ᐪᣔᒻᑊᑉ.KaasTalkText;
import ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᒼᣔᑊᑉᓫ.ᐪᣔᒻᑊᑉ.KaasTalkTextLocalizer;
import ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᒼᣔᑊᑉᓫ.ᐪᣔᒻᑊᑉ.KaasTalkText注;
import ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᒼᣔᑊᑉᓫ.ᐪᣔᒻᑊᑉ.嘴ᗮᙿᗮ;
public class KaasTalkTextLocalizerTest {
public class CakeTalkTextLocalizerTest {
@KaasTalkText注( = 嘴ᗮᙿᗮ.English.class, txt = "Missing required annotation %s on %s")
@KaasTalkText注( = 嘴ᗮᙿᗮ.Dutch.class, txt = "Ontbrekende vereiste annotatie %s op %s")
@KaasTalkText注( = 嘴ᗮᙿᗮ.China.class, txt = "%s 上缺少必需的註釋 %s")
@KaasTalkText注( = 嘴ᗮᙿᗮ.Hindi.class, txt = "%s पर आवश्यक एनोटेशन %s गुम है")
protected enum ₜₓₜMissingAnnotationTest implements KaasTalkText {}
@CakeTalkText注( = 嘴ᗮᙿᗮ.English.class, txt = "Missing required annotation %s on %s")
@CakeTalkText注( = 嘴ᗮᙿᗮ.Dutch.class, txt = "Ontbrekende vereiste annotatie %s op %s")
@CakeTalkText注( = 嘴ᗮᙿᗮ.China.class, txt = "%s 上缺少必需的註釋 %s")
@CakeTalkText注( = 嘴ᗮᙿᗮ.Hindi.class, txt = "%s पर आवश्यक एनोटेशन %s गुम है")
protected enum ₜₓₜMissingAnnotationTest implements CakeTalkText {}
@Test
public void testFormat() {
Assertions.assertThrows(NullPointerException.class, () -> {
KaasTalkTextLocalizer.format(null);
CakeTalkTextLocalizer.format(null);
});
Assertions.assertNotNull(KaasTalkTextLocalizer.format(ₜₓₜMissingAnnotationTest.class, "", ""));
Assertions.assertNotNull(CakeTalkTextLocalizer.format(ₜₓₜMissingAnnotationTest.class, "", ""));
}
@Test
public void testFormatTonedEN() {
String res = KaasTalkTextLocalizer.formatToned(嘴ᗮᙿᗮ.English.class, ₜₓₜMissingAnnotationTest.class, "foo", "bar");
String res = CakeTalkTextLocalizer.formatToned(嘴ᗮᙿᗮ.English.class, ₜₓₜMissingAnnotationTest.class, "foo", "bar");
Assertions.assertNotNull(res);
Assertions.assertTrue(res.contains("required"));
Assertions.assertTrue(res.contains("foo"));
@ -61,7 +56,7 @@ public class KaasTalkTextLocalizerTest {
@Test
public void testFormatTonedCN() {
String res = KaasTalkTextLocalizer.formatToned(嘴ᗮᙿᗮ.China.class, ₜₓₜMissingAnnotationTest.class, "foo", "bar");
String res = CakeTalkTextLocalizer.formatToned(嘴ᗮᙿᗮ.China.class, ₜₓₜMissingAnnotationTest.class, "foo", "bar");
Assertions.assertNotNull(res);
Assertions.assertTrue(res.contains("必需"));
Assertions.assertTrue(res.contains("bar"));