mirror of https://github.com/apache/maven.git
o Updated IT archetype
git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@708003 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a7206842f5
commit
394f6de30b
|
@ -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>
|
|
@ -1,4 +1,4 @@
|
|||
package ${package};
|
||||
package org.apache.maven.it;
|
||||
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
|
@ -9,7 +9,7 @@ package ${package};
|
|||
* "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.io.File;
|
|||
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 @@ import org.apache.maven.it.util.ResourceExtractor;
|
|||
* 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 @@ public class MavenITmngXXXXDescriptionOfProblemTest
|
|||
*/
|
||||
List cliOptions = new ArrayList();
|
||||
cliOptions.add( "-N" );
|
||||
verifier.setCliOptions( cliOptions );
|
||||
verifier.executeGoal( "install" );
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue