You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@creadur.apache.org by se...@apache.org on 2014/08/11 13:23:20 UTC
svn commit: r1617255 - in /creadur/rat/trunk/apache-rat-plugin/src/test:
invoker/it4_RAT-168/ invoker/it4_RAT-168/invoker.properties
invoker/it4_RAT-168/pom.xml invoker/it4_RAT-168/verify.groovy it4_RAT-168/
it4_RAT-168/pom.xml
Author: sebb
Date: Mon Aug 11 11:23:20 2014
New Revision: 1617255
URL: http://svn.apache.org/r1617255
Log:
RAT-168 Tests don't check CLI usage
Added basic test to check rat goal
Added:
creadur/rat/trunk/apache-rat-plugin/src/test/invoker/it4_RAT-168/
creadur/rat/trunk/apache-rat-plugin/src/test/invoker/it4_RAT-168/invoker.properties
creadur/rat/trunk/apache-rat-plugin/src/test/invoker/it4_RAT-168/pom.xml
creadur/rat/trunk/apache-rat-plugin/src/test/invoker/it4_RAT-168/verify.groovy
creadur/rat/trunk/apache-rat-plugin/src/test/it4_RAT-168/
creadur/rat/trunk/apache-rat-plugin/src/test/it4_RAT-168/pom.xml
Added: creadur/rat/trunk/apache-rat-plugin/src/test/invoker/it4_RAT-168/invoker.properties
URL: http://svn.apache.org/viewvc/creadur/rat/trunk/apache-rat-plugin/src/test/invoker/it4_RAT-168/invoker.properties?rev=1617255&view=auto
==============================================================================
--- creadur/rat/trunk/apache-rat-plugin/src/test/invoker/it4_RAT-168/invoker.properties (added)
+++ creadur/rat/trunk/apache-rat-plugin/src/test/invoker/it4_RAT-168/invoker.properties Mon Aug 11 11:23:20 2014
@@ -0,0 +1,16 @@
+# 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.
+
+invoker.goals = clean org.apache.rat:apache-rat-plugin::rat
Added: creadur/rat/trunk/apache-rat-plugin/src/test/invoker/it4_RAT-168/pom.xml
URL: http://svn.apache.org/viewvc/creadur/rat/trunk/apache-rat-plugin/src/test/invoker/it4_RAT-168/pom.xml?rev=1617255&view=auto
==============================================================================
--- creadur/rat/trunk/apache-rat-plugin/src/test/invoker/it4_RAT-168/pom.xml (added)
+++ creadur/rat/trunk/apache-rat-plugin/src/test/invoker/it4_RAT-168/pom.xml Mon Aug 11 11:23:20 2014
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ 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.
+-->
+<project
+ xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.rat.test</groupId>
+ <artifactId>it1</artifactId>
+ <version>1.0</version>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.rat</groupId>
+ <artifactId>apache-rat-plugin</artifactId>
+ <version>@pom.version@</version>
+ <configuration>
+ <includes>
+ <include>pom.xml</include>
+ </includes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Added: creadur/rat/trunk/apache-rat-plugin/src/test/invoker/it4_RAT-168/verify.groovy
URL: http://svn.apache.org/viewvc/creadur/rat/trunk/apache-rat-plugin/src/test/invoker/it4_RAT-168/verify.groovy?rev=1617255&view=auto
==============================================================================
--- creadur/rat/trunk/apache-rat-plugin/src/test/invoker/it4_RAT-168/verify.groovy (added)
+++ creadur/rat/trunk/apache-rat-plugin/src/test/invoker/it4_RAT-168/verify.groovy Mon Aug 11 11:23:20 2014
@@ -0,0 +1,28 @@
+/*
+ * 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.
+ */
+content = new File( basedir, 'build.log' ).text;
+
+assert content.contains( 'BUILD SUCCESS' );
+
+/*
+ * [WARNING] No resources included
+ */
+assert ! content.contains( '[WARNING]' );
+
+report = new File( basedir, 'target/site/rat-report.html' ).text;
+
+assert report.contains( 'AL pom.xml' );
Added: creadur/rat/trunk/apache-rat-plugin/src/test/it4_RAT-168/pom.xml
URL: http://svn.apache.org/viewvc/creadur/rat/trunk/apache-rat-plugin/src/test/it4_RAT-168/pom.xml?rev=1617255&view=auto
==============================================================================
--- creadur/rat/trunk/apache-rat-plugin/src/test/it4_RAT-168/pom.xml (added)
+++ creadur/rat/trunk/apache-rat-plugin/src/test/it4_RAT-168/pom.xml Mon Aug 11 11:23:20 2014
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ 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.
+-->
+<project
+ xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <groupId>org.codehaus.mojo.rat.test</groupId>
+ <artifactId>it4_RAT-168</artifactId>
+ <version>1.0</version>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.rat</groupId>
+ <artifactId>apache-rat-plugin</artifactId>
+ <version>@pom.version@</version>
+ <configuration>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>