Author: olamy
Date: Wed Sep  9 23:09:07 2009
New Revision: 813164

URL: http://svn.apache.org/viewvc?rev=813164&view=rev
Log:
Strengthened IT check

Modified:
    
maven/plugins/trunk/maven-checkstyle-plugin/src/it/checkstyle-report/verify.groovy

Modified: 
maven/plugins/trunk/maven-checkstyle-plugin/src/it/checkstyle-report/verify.groovy
URL: 
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-checkstyle-plugin/src/it/checkstyle-report/verify.groovy?rev=813164&r1=813163&r2=813164&view=diff
==============================================================================
--- 
maven/plugins/trunk/maven-checkstyle-plugin/src/it/checkstyle-report/verify.groovy
 (original)
+++ 
maven/plugins/trunk/maven-checkstyle-plugin/src/it/checkstyle-report/verify.groovy
 Wed Sep  9 23:09:07 2009
@@ -19,7 +19,23 @@
  */
 assert new File(basedir, 'target/site/checkstyle.html').exists();
 
+assert new File(basedir, 'target/checkstyle-cachefile').exists();
+assert new File(basedir, 'target/checkstyle-checker.xml').exists();
+assert new File(basedir, 'target/checkstyle-header.txt').exists();
+assert new File(basedir, 'target/checkstyle-result.xml').exists();
+
 File rssFile = new File( basedir, 'target/site/checkstyle.rss' );
 assert rssFile.exists();
 
+def rss = new XmlParser().parse( rssFile );
+
+def channel = rss.channel[0]
+
+assert channel.title.text() == 'Unnamed - 
org.apache.maven.plugins.checkstyle:check-pass:jar:1.0-SNAPSHOT - Checkstyle 
report'
+
+def item = channel.item[0]
+assert item != null
+assert item.title.text().startsWith('File: 2,')
+
+
 return true;
\ No newline at end of file


Reply via email to