]> source.dussan.org Git - sonarqube.git/commitdiff
Fix warnings
authorDavid Gageot <david@gageot.net>
Wed, 4 Jul 2012 14:30:00 +0000 (16:30 +0200)
committerDavid Gageot <david@gageot.net>
Wed, 4 Jul 2012 14:30:00 +0000 (16:30 +0200)
sonar-testing-harness/src/test/java/org/sonar/test/i18n/BundleSynchronizedTest.java

index 396f196927e2a1a6b1225ff17adcf76b3e26bef5..e510f909545f442e31762b608c204ec21da38c5a 100644 (file)
@@ -98,10 +98,10 @@ public class BundleSynchronizedTest {
 
   @Test
   public void testExtractDefaultBundleName() throws Exception {
-    assertThat(matcher.extractDefaultBundleName("myPlugin_fr.properties"), is("myPlugin.properties"));
-    assertThat(matcher.extractDefaultBundleName("myPlugin_fr_QB.properties"), is("myPlugin.properties"));
+    assertThat(BundleSynchronizedMatcher.extractDefaultBundleName("myPlugin_fr.properties"), is("myPlugin.properties"));
+    assertThat(BundleSynchronizedMatcher.extractDefaultBundleName("myPlugin_fr_QB.properties"), is("myPlugin.properties"));
     try {
-      matcher.extractDefaultBundleName("myPlugin.properties");
+      BundleSynchronizedMatcher.extractDefaultBundleName("myPlugin.properties");
     } catch (AssertionError e) {
       assertThat(e.getMessage(),
           containsString("The bundle 'myPlugin.properties' is a default bundle (without locale), so it can't be compared."));
@@ -110,8 +110,8 @@ public class BundleSynchronizedTest {
 
   @Test
   public void testIsCoreBundle() throws Exception {
-    assertTrue(matcher.isCoreBundle("core.properties"));
-    assertFalse(matcher.isCoreBundle("myPlugin.properties"));
+    assertTrue(BundleSynchronizedMatcher.isCoreBundle("core.properties"));
+    assertFalse(BundleSynchronizedMatcher.isCoreBundle("myPlugin.properties"));
   }
 
   @Test