diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2010-11-10 23:48:30 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2010-11-10 23:48:30 +0100 |
commit | a0847b4c380026bb3599e8ae37a5157521fbd9e6 (patch) | |
tree | 55558866dd27846e13d3357ebc4bf0732d86b956 /test/core/src/lombok/RunTestsViaDelombok.java | |
parent | 40b76b50462ac2a3d25b29eb4a8d28298a474efa (diff) | |
download | lombok-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.java | 4 |
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)); } |