You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2014/04/27 15:17:05 UTC

svn commit: r1590389 - in /maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic: expected-help.txt verify.groovy

Author: hboutemy
Date: Sun Apr 27 13:17:05 2014
New Revision: 1590389

URL: http://svn.apache.org/r1590389
Log:
[MPLUGIN-262] prepare more precise checks of help output

Added:
    maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/expected-help.txt   (with props)
Modified:
    maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/verify.groovy

Added: maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/expected-help.txt
URL: http://svn.apache.org/viewvc/maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/expected-help.txt?rev=1590389&view=auto
==============================================================================
--- maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/expected-help.txt (added)
+++ maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/expected-help.txt Sun Apr 27 13:17:05 2014
@@ -0,0 +1,20 @@
+[INFO] help 1.0-SNAPSHOT
+  Tests generation and compilation of the help mojo.
+
+help:test
+  MOJO-DESCRIPTION. Some 'quotation' marks and backslashes '\\', some important
+  javadoc
+  and an inline link to AnotherMojo.
+
+  Available parameters:
+
+    defaultParam
+      This parameter uses 'quotation' marks and backslashes '\\' in its
+      description. Those characters must be escaped in Java string literals.
+
+    deprecatedParam
+      This parameter is deprecated.
+
+    undocumentedParam
+      
+      Required: Yes

Propchange: maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/expected-help.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/expected-help.txt
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/expected-help.txt
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/verify.groovy
URL: http://svn.apache.org/viewvc/maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/verify.groovy?rev=1590389&r1=1590388&r2=1590389&view=diff
==============================================================================
--- maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/verify.groovy (original)
+++ maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/verify.groovy Sun Apr 27 13:17:05 2014
@@ -17,10 +17,12 @@
  * under the License.
  */
 
+expected = new File( basedir, "expected-help.txt" ).text.trim();
+
 log = new File( basedir, "help.log" ).text;
-log = log.substring( log.indexOf( "[INFO] help 1.0-SNAPSHOT" ) )
-log = log.substring( 0, log.indexOf( "[INFO]", 5 ) )
+log = log.substring( log.indexOf( "[INFO] help 1.0-SNAPSHOT" ) );
+log = log.substring( 0, log.indexOf( "[INFO]", 5 ) ).trim();
 
-println "$log";
+assert log == expected;
 
 return true;
\ No newline at end of file