]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5077 Fix test
authorJulien HENRY <julien.henry@sonarsource.com>
Mon, 9 Mar 2015 10:03:10 +0000 (11:03 +0100)
committerJulien HENRY <julien.henry@sonarsource.com>
Mon, 9 Mar 2015 10:03:10 +0000 (11:03 +0100)
sonar-core/src/test/java/org/sonar/core/i18n/DefaultI18nTest.java

index b859c92bc86b19d0f01e120301f8a7306c8074fc..d787b0e6983f0e6a7bb6c3f79021f57e6c7cf29b 100644 (file)
@@ -72,7 +72,7 @@ public class DefaultI18nTest {
     // Only in english
     assertThat(manager.getPropertyKeys().contains("assignee")).isTrue();
     assertThat(manager.getPropertyKeys().contains("sqale.page")).isTrue();
-    assertThat(manager.getPropertyKeys().contains("unknown")).isFalse();
+    assertThat(manager.getPropertyKeys().contains("bla_bla_bla")).isFalse();
   }
 
   @Test
@@ -124,8 +124,8 @@ public class DefaultI18nTest {
 
   @Test
   public void return_default_value_if_missing_key() {
-    assertThat(manager.message(Locale.ENGLISH, "unknown", "default")).isEqualTo("default");
-    assertThat(manager.message(Locale.FRENCH, "unknown", "default")).isEqualTo("default");
+    assertThat(manager.message(Locale.ENGLISH, "bla_bla_bla", "default")).isEqualTo("default");
+    assertThat(manager.message(Locale.FRENCH, "bla_bla_bla", "default")).isEqualTo("default");
   }
 
   @Test