mirror of https://github.com/apache/maven.git
o Decoupled it0024 from the Compiler Plugin
git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@696483 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d69b5537c7
commit
c8eb5a4553
|
@ -11,18 +11,18 @@ public class MavenIT0024Test
|
|||
|
||||
/**
|
||||
* Test usage of <executions/> inside a plugin rather than <goals/>
|
||||
* that are directly inside th plugin.
|
||||
* that are directly inside the plugin.
|
||||
*/
|
||||
public void testit0024()
|
||||
throws Exception
|
||||
{
|
||||
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/it0024" );
|
||||
|
||||
Verifier verifier = new Verifier( testDir.getAbsolutePath() );
|
||||
verifier.executeGoal( "generate-sources" );
|
||||
verifier.assertFilePresent( "target/classes/org/apache/maven/it0024/Person.class" );
|
||||
verifier.executeGoal( "initialize" );
|
||||
verifier.assertFilePresent( "plugin-exec-configuration.txt" );
|
||||
verifier.verifyErrorFreeLog();
|
||||
verifier.resetStreams();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,36 +1,52 @@
|
|||
<?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>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<name>Maven Integration Test :: it0024</name>
|
||||
|
||||
<groupId>org.apache.maven.its.it0024</groupId>
|
||||
<artifactId>maven-it-it0024</artifactId>
|
||||
<description>Test usage of <executions/> inside a plugin rather than <goals/>
|
||||
that are directly inside th plugin.</description>
|
||||
<packaging>jar</packaging>
|
||||
<version>1.0</version>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>3.8.1</version>
|
||||
<type>jar</type>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>Maven Integration Test :: it0024</name>
|
||||
<description>
|
||||
Test usage of <executions/> inside a plugin rather than <goals/>
|
||||
that are directly inside the plugin.
|
||||
</description>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-file</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>test</id>
|
||||
<phase>generate-sources</phase>
|
||||
<phase>initialize</phase>
|
||||
<configuration>
|
||||
<source>1.4</source>
|
||||
<target>1.4</target>
|
||||
<pathname>plugin-exec-configuration.txt</pathname>
|
||||
</configuration>
|
||||
<goals>
|
||||
<goal>compile</goal>
|
||||
<goal>file</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
|
|
|
@ -1,18 +0,0 @@
|
|||
package org.apache.maven.it0024;
|
||||
|
||||
public class Person
|
||||
{
|
||||
private String name;
|
||||
|
||||
public void setName( String name )
|
||||
{
|
||||
this.name = name;
|
||||
|
||||
assert true;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
package org.apache.maven.it0024;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
public class PersonTest
|
||||
extends TestCase
|
||||
{
|
||||
public void testPerson()
|
||||
{
|
||||
Person person = new Person();
|
||||
|
||||
person.setName( "foo" );
|
||||
|
||||
assertEquals( "foo", person.getName() );
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue