From: David Gageot Date: Wed, 4 Jul 2012 14:30:00 +0000 (+0200) Subject: Fix warnings X-Git-Tag: 3.2~251 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=620edca954338d65269b26aa52e7f74b9ec52c52;p=sonarqube.git Fix warnings --- diff --git a/sonar-testing-harness/src/test/java/org/sonar/test/i18n/BundleSynchronizedTest.java b/sonar-testing-harness/src/test/java/org/sonar/test/i18n/BundleSynchronizedTest.java index 396f196927e..e510f909545 100644 --- a/sonar-testing-harness/src/test/java/org/sonar/test/i18n/BundleSynchronizedTest.java +++ b/sonar-testing-harness/src/test/java/org/sonar/test/i18n/BundleSynchronizedTest.java @@ -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