]> source.dussan.org Git - sonarqube.git/commitdiff
Rename method in I18nMatchers
authorSimon Brandhof <simon.brandhof@gmail.com>
Wed, 3 Oct 2012 12:18:24 +0000 (14:18 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Wed, 3 Oct 2012 12:46:56 +0000 (14:46 +0200)
sonar-testing-harness/src/main/java/org/sonar/test/i18n/BundleSynchronizedMatcher.java
sonar-testing-harness/src/main/java/org/sonar/test/i18n/I18nMatchers.java

index 4ccd121179ce215f86dc57ea078b1f436f46344d..ef35b1782f1b7d26db88c76254373e41e65e2e5d 100644 (file)
@@ -97,7 +97,8 @@ public class BundleSynchronizedMatcher extends BaseMatcher<String> {
     details.append("' is not up-to-date.");
     print("\n\n Missing translations are:", missingKeys, details);
     print("\n\nThe following translations do not exist in the reference bundle:", additionalKeys, details);
-    details.append("\n\nSee report file located at: " + dumpFile.getAbsolutePath());
+    details.append("\n\nSee report file located at: ");
+    details.append(dumpFile.getAbsolutePath());
     details.append("\n=======================");
     return details;
   }
index b0a492550cc477b84bed2132f2afa5d553840486..aaebb107e3fb15aa60762c4bdbb3a5b0a73c8758 100644 (file)
@@ -48,10 +48,10 @@ public final class I18nMatchers {
   /**
    * Checks that all the translation bundles found on the classpath are up to date with the corresponding default ones found in the classpath.
    */
-  public static void assertAllBundlesUpToDate() {
+  public static void assertBundlesUpToDate() {
     File bundleFolder = TestUtils.getResource(BundleSynchronizedMatcher.L10N_PATH);
     if (bundleFolder == null || !bundleFolder.isDirectory()) {
-      fail("No bundle found in '" + BundleSynchronizedMatcher.L10N_PATH + "'");
+      fail("No bundle found in: " + BundleSynchronizedMatcher.L10N_PATH);
     }
 
     Collection<File> bundles = FileUtils.listFiles(bundleFolder, new String[] {"properties"}, false);