mirror of
https://github.com/apache/maven.git
synced 2025-02-08 11:05:37 +00:00
[MNG-3679] Adding integration test, and enabling integration tests of two other previously fixed issues.
git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@679473 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9b0ae5b71d
commit
38f6918d1b
@ -64,7 +64,10 @@ public static Test suite()
|
|||||||
* the tests are to finishing. Newer tests are also more likely to fail, so this is
|
* the tests are to finishing. Newer tests are also more likely to fail, so this is
|
||||||
* a fail fast technique as well.
|
* a fail fast technique as well.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
suite.addTestSuite( MavenITmng3679PluginExecIdInterpolationTest.class );
|
||||||
|
suite.addTestSuite( MavenITmng3671PluginLevelDepInterpolationTest.class );
|
||||||
|
suite.addTestSuite( MavenITmng3667ResolveDepsWithBadPomVersionTest.class );
|
||||||
suite.addTestSuite( MavenITmng3652UserAgentHeader.class );
|
suite.addTestSuite( MavenITmng3652UserAgentHeader.class );
|
||||||
suite.addTestSuite( MavenITmng3642DynamicResourcesTest.class );
|
suite.addTestSuite( MavenITmng3642DynamicResourcesTest.class );
|
||||||
suite.addTestSuite( MavenITmng3581PluginUsesWagonDependency.class );
|
suite.addTestSuite( MavenITmng3581PluginUsesWagonDependency.class );
|
||||||
|
@ -0,0 +1,31 @@
|
|||||||
|
package org.apache.maven.integrationtests;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
|
||||||
|
import org.apache.maven.it.Verifier;
|
||||||
|
import org.apache.maven.it.util.ResourceExtractor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Checks that a plugin execution with an id that contains an expression will
|
||||||
|
* still execute without a problem.
|
||||||
|
*
|
||||||
|
* @author jdcasey
|
||||||
|
*/
|
||||||
|
public class MavenITmng3679PluginExecIdInterpolationTest
|
||||||
|
extends AbstractMavenIntegrationTestCase
|
||||||
|
{
|
||||||
|
public void testitMNG3679 ()
|
||||||
|
throws Exception
|
||||||
|
{
|
||||||
|
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-3679-pluginExecIdInterpolation" );
|
||||||
|
|
||||||
|
Verifier verifier = new Verifier( testDir.getAbsolutePath() );
|
||||||
|
|
||||||
|
verifier.executeGoal( "validate" );
|
||||||
|
|
||||||
|
verifier.verifyErrorFreeLog();
|
||||||
|
verifier.resetStreams();
|
||||||
|
|
||||||
|
assertTrue( new File( testDir, "target/check.txt" ).exists() );
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<classpath>
|
||||||
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||||
|
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
|
||||||
|
<classpathentry kind="output" path="target/classes"/>
|
||||||
|
</classpath>
|
@ -0,0 +1,23 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<projectDescription>
|
||||||
|
<name>mng-3679-pluginExecIdInterpolation</name>
|
||||||
|
<comment></comment>
|
||||||
|
<projects>
|
||||||
|
</projects>
|
||||||
|
<buildSpec>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.maven.ide.eclipse.maven2Builder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
</buildSpec>
|
||||||
|
<natures>
|
||||||
|
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||||
|
<nature>org.maven.ide.eclipse.maven2Nature</nature>
|
||||||
|
</natures>
|
||||||
|
</projectDescription>
|
@ -0,0 +1,5 @@
|
|||||||
|
#Thu Jul 24 12:57:19 EDT 2008
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.2
|
||||||
|
org.eclipse.jdt.core.compiler.compliance=1.4
|
||||||
|
org.eclipse.jdt.core.compiler.source=1.3
|
@ -0,0 +1,8 @@
|
|||||||
|
#Thu Jul 24 12:57:46 EDT 2008
|
||||||
|
activeProfiles=
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
fullBuildGoals=process-test-resources
|
||||||
|
includeModules=true
|
||||||
|
resolveWorkspaceProjects=true
|
||||||
|
resourceFilterGoals=process-resources resources\:testResources
|
||||||
|
version=1
|
@ -0,0 +1,37 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<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>test</groupId>
|
||||||
|
<artifactId>mng-3679-pluginExecIdInterpolation</artifactId>
|
||||||
|
<packaging>pom</packaging>
|
||||||
|
<name/>
|
||||||
|
<version>1</version>
|
||||||
|
<description/>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-antrun-plugin</artifactId>
|
||||||
|
<version>1.1</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>${myExecId}</id>
|
||||||
|
<phase>validate</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>run</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<tasks>
|
||||||
|
<mkdir dir="${project.build.directory}" />
|
||||||
|
<echo file="${project.build.directory}/check.txt">${myExecId}</echo>
|
||||||
|
</tasks>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
<properties>
|
||||||
|
<myExecId>test-id</myExecId>
|
||||||
|
</properties>
|
||||||
|
</project>
|
@ -0,0 +1 @@
|
|||||||
|
Testing execution with id: test-id\n
|
Loading…
x
Reference in New Issue
Block a user