From 726c17ed044d5e23a4ee1465a8a8c487ac1a9646 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Mon, 20 Feb 2012 22:05:03 +0100 Subject: Add unit tests and fix some quality flaws --- .../src/main/java/org/sonar/test/i18n/BundleSynchronizedMatcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sonar-testing-harness/src') 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 { 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); } -- cgit v1.2.3