You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by be...@apache.org on 2008/10/26 16:12:46 UTC
svn commit: r708003 - in
/maven/core-integration-testing/trunk/core-it-support/maven-it-archetype/src/main/resources:
META-INF/maven/ archetype-resources/src/test/java/
archetype-resources/src/test/resources/mng-xxxx-descriptionOfProblem/
archetype-res...
Author: bentmann
Date: Sun Oct 26 08:12:45 2008
New Revision: 708003
URL: http://svn.apache.org/viewvc?rev=708003&view=rev
Log:
o Updated IT archetype
Added:
maven/core-integration-testing/trunk/core-it-support/maven-it-archetype/src/main/resources/archetype-resources/src/test/resources/mng-xxxx/ (props changed)
- copied from r707827, maven/core-integration-testing/trunk/core-it-support/maven-it-archetype/src/main/resources/archetype-resources/src/test/resources/mng-xxxx-descriptionOfProblem/
Removed:
maven/core-integration-testing/trunk/core-it-support/maven-it-archetype/src/main/resources/archetype-resources/src/test/resources/mng-xxxx-descriptionOfProblem/
Modified:
maven/core-integration-testing/trunk/core-it-support/maven-it-archetype/src/main/resources/META-INF/maven/archetype.xml
maven/core-integration-testing/trunk/core-it-support/maven-it-archetype/src/main/resources/archetype-resources/src/test/java/MavenITmngXXXXDescriptionOfProblemTest.java
Modified: maven/core-integration-testing/trunk/core-it-support/maven-it-archetype/src/main/resources/META-INF/maven/archetype.xml
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-support/maven-it-archetype/src/main/resources/META-INF/maven/archetype.xml?rev=708003&r1=708002&r2=708003&view=diff
==============================================================================
--- maven/core-integration-testing/trunk/core-it-support/maven-it-archetype/src/main/resources/META-INF/maven/archetype.xml (original)
+++ maven/core-integration-testing/trunk/core-it-support/maven-it-archetype/src/main/resources/META-INF/maven/archetype.xml Sun Oct 26 08:12:45 2008
@@ -1,7 +1,8 @@
-<?xml version="1.0" encoding="UTF-8"?><archetype>
+<?xml version="1.0" encoding="UTF-8"?>
+<archetype>
<id>maven-integration-test-sample-archetype</id>
<testSources>
- <source>src\test\java\org\apache\maven\itSample\MavenITmngXXXXDescriptionOfProblemTest.java</source>
+ <source>src\test\java\org\apache\maven\it\MavenITmngXXXXDescriptionOfProblemTest.java</source>
</testSources>
<resources>
<resource>.classpath</resource>
@@ -9,12 +10,12 @@
<resource>out.txt</resource>
</resources>
<testResources>
- <resource>src\test\resources\mng-xxxx-descriptionOfProblem\checkstyle-assembly\pom.xml</resource>
- <resource>src\test\resources\mng-xxxx-descriptionOfProblem\checkstyle-assembly\src\main\resources\rule_set.xml</resource>
- <resource>src\test\resources\mng-xxxx-descriptionOfProblem\checkstyle-assembly\src\main\resources\stc_checks.xml</resource>
- <resource>src\test\resources\mng-xxxx-descriptionOfProblem\checkstyle-test\pom.xml</resource>
- <resource>src\test\resources\mng-xxxx-descriptionOfProblem\checkstyle-test\src\main\java\Class.java</resource>
- <resource>src\test\resources\mng-xxxx-descriptionOfProblem\pom.xml</resource>
- <resource>src\test\resources\mng-xxxx-descriptionOfProblem\readme.txt</resource>
+ <resource>src\test\resources\mng-xxxx\checkstyle-assembly\pom.xml</resource>
+ <resource>src\test\resources\mng-xxxx\checkstyle-assembly\src\main\resources\rule_set.xml</resource>
+ <resource>src\test\resources\mng-xxxx\checkstyle-assembly\src\main\resources\stc_checks.xml</resource>
+ <resource>src\test\resources\mng-xxxx\checkstyle-test\pom.xml</resource>
+ <resource>src\test\resources\mng-xxxx\checkstyle-test\src\main\java\Class.java</resource>
+ <resource>src\test\resources\mng-xxxx\pom.xml</resource>
+ <resource>src\test\resources\mng-xxxx\readme.txt</resource>
</testResources>
-</archetype>
\ No newline at end of file
+</archetype>
Modified: maven/core-integration-testing/trunk/core-it-support/maven-it-archetype/src/main/resources/archetype-resources/src/test/java/MavenITmngXXXXDescriptionOfProblemTest.java
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-support/maven-it-archetype/src/main/resources/archetype-resources/src/test/java/MavenITmngXXXXDescriptionOfProblemTest.java?rev=708003&r1=708002&r2=708003&view=diff
==============================================================================
--- maven/core-integration-testing/trunk/core-it-support/maven-it-archetype/src/main/resources/archetype-resources/src/test/java/MavenITmngXXXXDescriptionOfProblemTest.java (original)
+++ maven/core-integration-testing/trunk/core-it-support/maven-it-archetype/src/main/resources/archetype-resources/src/test/java/MavenITmngXXXXDescriptionOfProblemTest.java Sun Oct 26 08:12:45 2008
@@ -1,4 +1,4 @@
-package ${package};
+package org.apache.maven.it;
/*
* Licensed to the Apache Software Foundation (ASF) under one
@@ -9,7 +9,7 @@
* "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
+ * 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
@@ -23,7 +23,6 @@
import java.util.ArrayList;
import java.util.List;
-import org.apache.maven.it.AbstractMavenIntegrationTestCase;
import org.apache.maven.it.Verifier;
import org.apache.maven.it.util.ResourceExtractor;
@@ -38,22 +37,29 @@
* phases. See more information inline in the code.
*
* @author <a href="mailto:brianf@apache.org">Brian Fox</a>
- *
+ * @version $Id$
*/
public class MavenITmngXXXXDescriptionOfProblemTest
extends AbstractMavenIntegrationTestCase
{
+
+ // TODO: RENAME THIS TEST TO SUIT YOUR SCENARIO.
+ // Usign the Jira issue id this reproduces is a good
+ // start, along with a description:
+ // ie MavenITmngXXXXHoustonWeHaveAProblemTest (must end in test)
+ public MavenITmngXXXXDescriptionOfProblemTest()
+ {
+ super( "(2.0.8,)" ); // only test in 2.0.9+
+ }
+
public void testitMNGxxxx ()
throws Exception
{
- // TODO: RENAME THIS TEST TO SUIT YOUR SCENARIO.
- // Usign the Jira issue id this reproduces is a good
- // start, along with a description:
- // ie MNG-13x-HoustonWeHaveAProblemTest (must end in test)
// The testdir is computed from the location of this
// file.
- File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-xxxx-descriptionOfProblem" );
+ // TODO: RENAME THIS PATH TO MATCH YOUR ISSUE ID.
+ File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-xxxx" );
Verifier verifier;
@@ -79,6 +85,7 @@
*/
List cliOptions = new ArrayList();
cliOptions.add( "-N" );
+ verifier.setCliOptions( cliOptions );
verifier.executeGoal( "install" );
/*
Propchange: maven/core-integration-testing/trunk/core-it-support/maven-it-archetype/src/main/resources/archetype-resources/src/test/resources/mng-xxxx/
------------------------------------------------------------------------------
svn:mergeinfo =