aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-testing-harness
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2012-02-20 22:05:03 +0100
committerSimon Brandhof <simon.brandhof@gmail.com>2012-02-20 22:05:03 +0100
commit726c17ed044d5e23a4ee1465a8a8c487ac1a9646 (patch)
tree8524a33e71c1ade6ee20c777cc2a8155b3d85d1a /sonar-testing-harness
parentc62f38d64c56ef9215e78b9adeb224cd76bfa4be (diff)
downloadsonarqube-726c17ed044d5e23a4ee1465a8a8c487ac1a9646.tar.gz
sonarqube-726c17ed044d5e23a4ee1465a8a8c487ac1a9646.zip
Add unit tests and fix some quality flaws
Diffstat (limited to 'sonar-testing-harness')
-rw-r--r--sonar-testing-harness/src/main/java/org/sonar/test/i18n/BundleSynchronizedMatcher.java2
1 files changed, 1 insertions, 1 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 7a7bbdca8b6..853365c3bcf 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
@@ -129,7 +129,7 @@ public class BundleSynchronizedMatcher extends BaseMatcher<String> {
writer = new FileWriter(dumpFile);
writer.write(details);
} catch (IOException e) {
- System.out.println("Unable to write the report to 'target/l10n/" + bundleName + ".report.txt'.");
+ throw new RuntimeException("Unable to write the report to 'target/l10n/" + bundleName + ".report.txt'");
} finally {
IOUtils.closeQuietly(writer);
}