From 620edca954338d65269b26aa52e7f74b9ec52c52 Mon Sep 17 00:00:00 2001 From: David Gageot Date: Wed, 4 Jul 2012 16:30:00 +0200 Subject: [PATCH] Fix warnings --- .../org/sonar/test/i18n/BundleSynchronizedTest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 -- 2.39.5