summaryrefslogtreecommitdiffstats
path: root/sonar-testing-harness/src
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2012-10-03 14:18:24 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2012-10-03 14:46:56 +0200
commit2f435421c69ba3205bc611ad081891e1d572c69e (patch)
tree09fcd6ce0c33bb4d31a528dc7dd5052c8c952282 /sonar-testing-harness/src
parentb6ca5e001aa355c737126f2d25b3a824ef686ce5 (diff)
downloadsonarqube-2f435421c69ba3205bc611ad081891e1d572c69e.tar.gz
sonarqube-2f435421c69ba3205bc611ad081891e1d572c69e.zip
Rename method in I18nMatchers
Diffstat (limited to 'sonar-testing-harness/src')
-rw-r--r--sonar-testing-harness/src/main/java/org/sonar/test/i18n/BundleSynchronizedMatcher.java3
-rw-r--r--sonar-testing-harness/src/main/java/org/sonar/test/i18n/I18nMatchers.java4
2 files changed, 4 insertions, 3 deletions
diff --git a/sonar-testing-harness/src/main/java/org/sonar/test/i18n/BundleSynchronizedMatcher.java b/sonar-testing-harness/src/main/java/org/sonar/test/i18n/BundleSynchronizedMatcher.java
index 4ccd121179c..ef35b1782f1 100644
--- a/sonar-testing-harness/src/main/java/org/sonar/test/i18n/BundleSynchronizedMatcher.java
+++ b/sonar-testing-harness/src/main/java/org/sonar/test/i18n/BundleSynchronizedMatcher.java
@@ -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;
}
diff --git a/sonar-testing-harness/src/main/java/org/sonar/test/i18n/I18nMatchers.java b/sonar-testing-harness/src/main/java/org/sonar/test/i18n/I18nMatchers.java
index b0a492550cc..aaebb107e3f 100644
--- a/sonar-testing-harness/src/main/java/org/sonar/test/i18n/I18nMatchers.java
+++ b/sonar-testing-harness/src/main/java/org/sonar/test/i18n/I18nMatchers.java
@@ -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);