mirror of https://github.com/apache/maven.git
o Decoupled it0028 from the Compiler Plugin
git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@696484 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c8eb5a4553
commit
41b68439f0
|
@ -17,12 +17,12 @@ public class MavenIT0028Test
|
||||||
throws Exception
|
throws Exception
|
||||||
{
|
{
|
||||||
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/it0028" );
|
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/it0028" );
|
||||||
|
|
||||||
Verifier verifier = new Verifier( testDir.getAbsolutePath() );
|
Verifier verifier = new Verifier( testDir.getAbsolutePath() );
|
||||||
verifier.executeGoal( "test" );
|
verifier.executeGoal( "org.apache.maven.its.plugins:maven-it-plugin-file::file" );
|
||||||
verifier.assertFilePresent( "target/classes/org/apache/maven/it0001/Person.class" );
|
verifier.assertFilePresent( "file.txt" );
|
||||||
verifier.verifyErrorFreeLog();
|
verifier.verifyErrorFreeLog();
|
||||||
verifier.resetStreams();
|
verifier.resetStreams();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -1,29 +1,44 @@
|
||||||
|
<?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>
|
<project>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<name>Maven Integration Test :: it0028</name>
|
|
||||||
<groupId>org.apache.maven.its.it0028</groupId>
|
<groupId>org.apache.maven.its.it0028</groupId>
|
||||||
<artifactId>maven-it-it0028</artifactId>
|
<artifactId>maven-it-it0028</artifactId>
|
||||||
<description>Test that unused configuration parameters from the POM don't cause the
|
|
||||||
mojo to fail...they will show up as warnings in the -X output instead.</description>
|
|
||||||
<packaging>jar</packaging>
|
|
||||||
<version>1.0</version>
|
<version>1.0</version>
|
||||||
<dependencies>
|
<packaging>jar</packaging>
|
||||||
<dependency>
|
|
||||||
<groupId>junit</groupId>
|
<name>Maven Integration Test :: it0028</name>
|
||||||
<artifactId>junit</artifactId>
|
<description>
|
||||||
<version>3.8.1</version>
|
Test that unused configuration parameters from the POM don't cause the
|
||||||
<type>jar</type>
|
mojo to fail...they will show up as warnings in the -X output instead.
|
||||||
<scope>test</scope>
|
</description>
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.its.plugins</groupId>
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-it-plugin-file</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<source>1.4</source>
|
|
||||||
<target>1.4</target>
|
|
||||||
<unused>something</unused>
|
<unused>something</unused>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
|
@ -1,18 +0,0 @@
|
||||||
package org.apache.maven.it0001;
|
|
||||||
|
|
||||||
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.it0001;
|
|
||||||
|
|
||||||
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