summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorAdrien Hopkins <adrien.p.hopkins@gmail.com>2025-02-21 23:51:13 -0500
committerAdrien Hopkins <adrien.p.hopkins@gmail.com>2025-02-23 20:31:46 -0500
commit9a25a05d1b376dc20a14696afa280ff4940b1f8a (patch)
treeffc8b19b8262556b28f39ce691e2ec2fe90b0ed8 /src/test
parenta9485b187844cad900bc43c0651406c51a7295c1 (diff)
Add internationalization API to GUI
This commit intentionally fails one test, since that is for functionality I intend to add later.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/sevenUnitsGUI/I18nTest.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/test/java/sevenUnitsGUI/I18nTest.java b/src/test/java/sevenUnitsGUI/I18nTest.java
new file mode 100644
index 0000000..73bd727
--- /dev/null
+++ b/src/test/java/sevenUnitsGUI/I18nTest.java
@@ -0,0 +1,21 @@
+package sevenUnitsGUI;
+
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+
+import org.junit.jupiter.api.Test;
+
+class I18nTest {
+
+ /**
+ * Tests that the default locale exists.
+ *
+ * Currently this test fails.
+ */
+ @Test
+ void testDefaultLocale() {
+ Presenter p = new Presenter(new ViewBot());
+ assertNotNull(p.locales.get(Presenter.DEFAULT_LOCALE),
+ "Default locale does not exist.");
+ }
+
+}