aboutsummaryrefslogtreecommitdiff
path: root/test/core/src/lombok/RunTestsViaDelombok.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2010-11-10 23:48:30 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2010-11-10 23:48:30 +0100
commita0847b4c380026bb3599e8ae37a5157521fbd9e6 (patch)
tree55558866dd27846e13d3357ebc4bf0732d86b956 /test/core/src/lombok/RunTestsViaDelombok.java
parent40b76b50462ac2a3d25b29eb4a8d28298a474efa (diff)
downloadlombok-a0847b4c380026bb3599e8ae37a5157521fbd9e6.tar.gz
lombok-a0847b4c380026bb3599e8ae37a5157521fbd9e6.tar.bz2
lombok-a0847b4c380026bb3599e8ae37a5157521fbd9e6.zip
Tests were failing due to a bug in the compare error output part of the test runner.
Diffstat (limited to 'test/core/src/lombok/RunTestsViaDelombok.java')
-rw-r--r--test/core/src/lombok/RunTestsViaDelombok.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/core/src/lombok/RunTestsViaDelombok.java b/test/core/src/lombok/RunTestsViaDelombok.java
index 59a0ee89..bcaa66a2 100644
--- a/test/core/src/lombok/RunTestsViaDelombok.java
+++ b/test/core/src/lombok/RunTestsViaDelombok.java
@@ -45,7 +45,9 @@ public class RunTestsViaDelombok extends AbstractRunTests {
delombok.setDiagnosticsListener(new DiagnosticListener<JavaFileObject>() {
@Override public void report(Diagnostic<? extends JavaFileObject> d) {
String msg = d.getMessage(Locale.ENGLISH);
- Matcher m = Pattern.compile("^" + Pattern.quote(file.getAbsolutePath()) + "\\s*:\\s*\\d+\\s*:\\s*(?:warning:\\s*)?(.*)$").matcher(msg);
+ Matcher m = Pattern.compile(
+ "^" + Pattern.quote(file.getAbsolutePath()) +
+ "\\s*:\\s*\\d+\\s*:\\s*(?:warning:\\s*)?(.*)$", Pattern.DOTALL).matcher(msg);
if (m.matches()) msg = m.group(1);
messages.append(String.format("%d:%d %s %s\n", d.getLineNumber(), d.getColumnNumber(), d.getKind(), msg));
}