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:
Benjamin Bentmann 2008-09-17 22:00:55 +00:00
parent c8eb5a4553
commit 41b68439f0
4 changed files with 36 additions and 55 deletions

View File

@ -17,12 +17,12 @@ public class MavenIT0028Test
throws Exception
{
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/it0028" );
Verifier verifier = new Verifier( testDir.getAbsolutePath() );
verifier.executeGoal( "test" );
verifier.assertFilePresent( "target/classes/org/apache/maven/it0001/Person.class" );
verifier.executeGoal( "org.apache.maven.its.plugins:maven-it-plugin-file::file" );
verifier.assertFilePresent( "file.txt" );
verifier.verifyErrorFreeLog();
verifier.resetStreams();
}
}
}

View File

@ -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>
<modelVersion>4.0.0</modelVersion>
<name>Maven Integration Test :: it0028</name>
<groupId>org.apache.maven.its.it0028</groupId>
<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>
<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 :: it0028</name>
<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>
<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>
<configuration>
<source>1.4</source>
<target>1.4</target>
<unused>something</unused>
</configuration>
</plugin>

View File

@ -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;
}
}

View File

@ -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() );
}
}