aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2014-04-17 17:45:43 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2014-04-17 17:45:43 +0200
commitfa306cf2509a427937642db79e391e48ce85221e (patch)
tree076d60f8ea64cd4c3b0c96325f2f7c5be82b458d
parent9fb1ab8fc45a7735e2aef7d625acb130f78e4d26 (diff)
downloadsonarqube-fa306cf2509a427937642db79e391e48ce85221e.tar.gz
sonarqube-fa306cf2509a427937642db79e391e48ce85221e.zip
Activate Medium test
-rw-r--r--sonar-server/src/test/java/org/sonar/server/tester/MediumTest.java15
1 files changed, 13 insertions, 2 deletions
diff --git a/sonar-server/src/test/java/org/sonar/server/tester/MediumTest.java b/sonar-server/src/test/java/org/sonar/server/tester/MediumTest.java
index 17717a0dbb3..9f5a9b50386 100644
--- a/sonar-server/src/test/java/org/sonar/server/tester/MediumTest.java
+++ b/sonar-server/src/test/java/org/sonar/server/tester/MediumTest.java
@@ -22,8 +22,9 @@ package org.sonar.server.tester;
import org.junit.After;
import org.junit.Before;
-import org.junit.Ignore;
import org.junit.Test;
+import org.sonar.api.i18n.I18n;
+import org.sonar.core.i18n.GwtI18n;
import org.sonar.core.permission.GlobalPermissions;
import org.sonar.core.rule.RuleDao;
import org.sonar.core.rule.RuleDto;
@@ -33,9 +34,10 @@ import org.sonar.server.rule.RuleRegistry;
import org.sonar.server.rule.Rules;
import org.sonar.server.user.MockUserSession;
+import java.util.Locale;
+
import static org.fest.assertions.Assertions.assertThat;
-@Ignore
public class MediumTest {
ServerTester serverTester = new ServerTester();
@@ -100,4 +102,13 @@ public class MediumTest {
assertThat(rules.find(RuleQuery.builder().build()).results()).hasSize(1);
}
+
+ @Test
+ public void i18n_message() throws Exception {
+ I18n i18n = serverTester.get(I18n.class);
+ assertThat(i18n.message(Locale.ENGLISH, "any", null)).isEqualTo("Any");
+
+ GwtI18n gwtI18n= serverTester.get(GwtI18n.class);
+ assertThat(gwtI18n.getJsDictionnary(Locale.ENGLISH)).contains("\"design.help\": \"Help\"");
+ }
}