Author: tchemit Date: 2009-09-12 00:09:20 +0200 (Sat, 12 Sep 2009) New Revision: 85 Added: maven-redmine-plugin/trunk/src/it/ maven-redmine-plugin/trunk/src/it/download/ maven-redmine-plugin/trunk/src/it/download/goals.txt maven-redmine-plugin/trunk/src/it/download/pom.xml maven-redmine-plugin/trunk/src/it/download/src/ maven-redmine-plugin/trunk/src/it/download/src/changes/ maven-redmine-plugin/trunk/src/it/download/src/changes/changes.xml maven-redmine-plugin/trunk/src/it/download/verify.groovy maven-redmine-plugin/trunk/src/it/settings.xml Log: add it test Added: maven-redmine-plugin/trunk/src/it/download/goals.txt =================================================================== --- maven-redmine-plugin/trunk/src/it/download/goals.txt (rev 0) +++ maven-redmine-plugin/trunk/src/it/download/goals.txt 2009-09-11 22:09:20 UTC (rev 85) @@ -0,0 +1 @@ +clean redmine:download Added: maven-redmine-plugin/trunk/src/it/download/pom.xml =================================================================== --- maven-redmine-plugin/trunk/src/it/download/pom.xml (rev 0) +++ maven-redmine-plugin/trunk/src/it/download/pom.xml 2009-09-11 22:09:20 UTC (rev 85) @@ -0,0 +1,83 @@ +<?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.nuiton.redmine</groupId> + <artifactId>test-download</artifactId> + <version>0</version> + + <name>Maven</name> + <packaging>jar</packaging> + <description>Test report.</description> + + <url>http://www.foo.com</url> + <!--dependencies> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>3.8.1</version> + <scope>test</scope> + </dependency> + </dependencies--> + <issueManagement> + <system>redmine</system> + <url>http://mynuiton.org/projects/one/issues</url> + </issueManagement> + + <properties> + <changesPluginVersion>@pom.version@</changesPluginVersion> + </properties> + <build> + <pluginManagement> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-changes-plugin</artifactId> + <version>${changesPluginVersion}</version> + </plugin> + </plugins> + </pluginManagement> + <plugins> + <plugin> + <groupId>org.nuiton</groupId> + <artifactId>maven-redmine-plugin</artifactId> + <configuration> + <encoding>UTF-8</encoding> + <!--<redmineUrl></redmineUrl>--> + <redmineUsername>chemit</redmineUsername> + <redminePassword>azer</redminePassword> + <projectId>one</projectId> + <versionId>1.0.0</versionId> + <types>version</types> + </configuration> + <executions> + <execution> + <goals> + <goal>download</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> +</project> Added: maven-redmine-plugin/trunk/src/it/download/src/changes/changes.xml =================================================================== --- maven-redmine-plugin/trunk/src/it/download/src/changes/changes.xml (rev 0) +++ maven-redmine-plugin/trunk/src/it/download/src/changes/changes.xml 2009-09-11 22:09:20 UTC (rev 85) @@ -0,0 +1,64 @@ +<!-- +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. +--> + +<document xmlns="http://maven.apache.org/changes/1.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <properties> + <title>Changes report Project</title> + <author email="zloug@toto.com">Mr Zloug</author> + </properties> + <body> + <release version="1.1" date="2005-03-01" description="Subsequent release"> + <action dev="me" type="add"> + Added additional documentation on how to configure the plugin. + </action> + <action dev="me" type="fix" issue="MCHANGES-88"> + Enable retrieving component-specific issues. + </action> + <action dev="jruiz" type="remove" issue="MCHANGES-899"> + The element type " link " must be terminated by the matching end-tag. + Deleted the erroneous code. + <fixes issue="MCHANGES-1"/> + <fixes issue="JIRA-12"/> + <dueto name="John Doe" email="john@doe.com"/> + <dueto name="Jane Doe"/> + </action> + <action dev="you" type="update" issue="MCHANGES-999" system="bugzilla"> + Handle different issue systems. + <fixes issue="bug-12345"/> + <dueto name="John Doe" email="john@doe.com"/> + </action> + <action dev="him" type="update"> + Updated dependencies. + <dueto name="John Doe" email="john@doe.com"/> + <dueto name="Jane Doe"/> + </action> + </release> + + <release version="1.0" date="2005-01-01" description="First release"> + <action dev="me" type="update" issue="MCHANGES-47" due-to="others" due-to-email="others@users.com"> + Uploaded documentation on how to use the plugin. + <fixes issue="MCHANGES-88"/> + <fixes issue="JIRA-YYY"/> + <dueto name="John Doe" email="john@doe.com"/> + <dueto name="Jane Doe"/> + </action> + </release> + </body> +</document> \ No newline at end of file Added: maven-redmine-plugin/trunk/src/it/download/verify.groovy =================================================================== --- maven-redmine-plugin/trunk/src/it/download/verify.groovy (rev 0) +++ maven-redmine-plugin/trunk/src/it/download/verify.groovy 2009-09-11 22:09:20 UTC (rev 85) @@ -0,0 +1,26 @@ + +/* + * 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. + */ +assert new File(basedir, 'target/redmine-cache').exists(); + +//content = new File(basedir, 'target/announcement/announcement.vm').text; + +//assert content.contains( 'Test report.' ); + +return true; Added: maven-redmine-plugin/trunk/src/it/settings.xml =================================================================== --- maven-redmine-plugin/trunk/src/it/settings.xml (rev 0) +++ maven-redmine-plugin/trunk/src/it/settings.xml 2009-09-11 22:09:20 UTC (rev 85) @@ -0,0 +1,77 @@ +<?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. +--> + +<settings> + <profiles> + <profile> + <id>it-repo</id> + <activation> + <activeByDefault>true</activeByDefault> + </activation> + <repositories> + <repository> + <id>local.central</id> + <url>file:///@localRepository@</url> + <releases> + <enabled>true</enabled> + </releases> + <snapshots> + <enabled>true</enabled> + </snapshots> + </repository> + <repository> + <id>apache.snapshots</id> + <name>Apache Snapshot Repository</name> + <url>http://people.apache.org/repo/m2-snapshot-repository</url> + <releases> + <enabled>false</enabled> + </releases> + <snapshots> + <enabled>true</enabled> + </snapshots> + </repository> + <repository> + <id>nuiton.snapshots</id> + <name>Nuiton Snapshot Repository</name> + <url>http://maven.nuiton.org/snapshot</url> + <releases> + <enabled>false</enabled> + </releases> + <snapshots> + <enabled>true</enabled> + </snapshots> + </repository> + </repositories> + <pluginRepositories> + <pluginRepository> + <id>local.central</id> + <url>file:///@localRepository@</url> + <releases> + <enabled>true</enabled> + </releases> + <snapshots> + <enabled>true</enabled> + </snapshots> + </pluginRepository> + </pluginRepositories> + </profile> + </profiles> +</settings>