From c5fc2b28d5f6d512f75005f73c39994272ad198f Mon Sep 17 00:00:00 2001 From: Hugo Hirsch Date: Thu, 4 Feb 2016 08:35:27 +0100 Subject: [PATCH] Issue #22: Add l10n to application * Add problem with unknown keys as TODO. --- .../aikiit/spamprotector/util/LocalizationHelperTest.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/test/java/de/aikiit/spamprotector/util/LocalizationHelperTest.java b/src/test/java/de/aikiit/spamprotector/util/LocalizationHelperTest.java index 922b48f71..a9c54e32c 100644 --- a/src/test/java/de/aikiit/spamprotector/util/LocalizationHelperTest.java +++ b/src/test/java/de/aikiit/spamprotector/util/LocalizationHelperTest.java @@ -72,4 +72,11 @@ public final void setLocaleViaSystemProperties() { public final void umlautEncodingWorksCorrectly() { assertEquals("ßäü", getBundleString("spamschutz.test.umlauts")); } + + @Test + public final void unknownKey() { + // TODO [WARNING] + // java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key spamschutz.ui.button.rtl + // return plain key if unknown instead of except + } }