You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ti...@apache.org on 2016/08/30 20:08:52 UTC
maven-surefire git commit: Documented multi-lined exception message
handling introduced in version 2.19
Repository: maven-surefire
Updated Branches:
refs/heads/master 8d22e161d -> 0aeceecc3
Documented multi-lined exception message handling introduced in version 2.19
Project: http://git-wip-us.apache.org/repos/asf/maven-surefire/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven-surefire/commit/0aeceecc
Tree: http://git-wip-us.apache.org/repos/asf/maven-surefire/tree/0aeceecc
Diff: http://git-wip-us.apache.org/repos/asf/maven-surefire/diff/0aeceecc
Branch: refs/heads/master
Commit: 0aeceecc3b85d1133a1a2f2335a89950689e33bb
Parents: 8d22e16
Author: Tibor17 <ti...@lycos.com>
Authored: Tue Aug 30 22:05:32 2016 +0200
Committer: Tibor17 <ti...@lycos.com>
Committed: Tue Aug 30 22:05:32 2016 +0200
----------------------------------------------------------------------
.../src/site/markdown/multilineexceptions.md | 37 ++++++++++++++++++++
maven-surefire-plugin/src/site/site.xml | 1 +
2 files changed, 38 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/0aeceecc/maven-surefire-plugin/src/site/markdown/multilineexceptions.md
----------------------------------------------------------------------
diff --git a/maven-surefire-plugin/src/site/markdown/multilineexceptions.md b/maven-surefire-plugin/src/site/markdown/multilineexceptions.md
new file mode 100644
index 0000000..69c70c8
--- /dev/null
+++ b/maven-surefire-plugin/src/site/markdown/multilineexceptions.md
@@ -0,0 +1,37 @@
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+Multi-line exception messages
+=============================
+
+Surefire 2.19 introduced special handling for multi-lined exception messages in order to faciliate vertical alignment. For example,
+
+ java.lang.IllegalArgumentException: My Couch
+ |
+ May not contain whitespace
+
+becomes:
+
+ java.lang.IllegalArgumentException:
+ The Couch
+ |
+ May not contain whitespace
+
+The plugin supports Groovy assertion output.
+For more information see the issue https://jira.codehaus.org/browse/SUREFIRE-986.
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/0aeceecc/maven-surefire-plugin/src/site/site.xml
----------------------------------------------------------------------
diff --git a/maven-surefire-plugin/src/site/site.xml b/maven-surefire-plugin/src/site/site.xml
index 4591f53..459cd54 100644
--- a/maven-surefire-plugin/src/site/site.xml
+++ b/maven-surefire-plugin/src/site/site.xml
@@ -52,6 +52,7 @@
<item name="Configuring the Classpath" href="examples/configuring-classpath.html"/>
<item name="Selecting Providers" href="examples/providers.html"/>
<item name="New Error Summary" href="newerrorsummary.html"/>
+ <item name="Multi-lined Exception Messages" href="multilineexceptions.html"/>
<item name="Fork Options and Parallel Test Execution" href="examples/fork-options-and-parallel-execution.html"/>
<item name="Using Console Logs" href="examples/logging.html"/>
<item name="Shutdown of Forked JVM" href="examples/shutdown.html"/>