o Added unit tests for goal decoration/resolution.

o Added integration test featuring a decorated goal.


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162861 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
John Dennis Casey 2004-07-19 00:58:14 +00:00
parent f29ce7b518
commit 0cf96effb2
8 changed files with 80 additions and 0 deletions

View File

@ -4,3 +4,4 @@ it0002
it0003
it0004
it0005
it0006

View File

@ -0,0 +1,9 @@
*~
*.log
target
*.ipr
*.iws
dist
target
.classpath
.project

View File

@ -0,0 +1,23 @@
<!--
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed 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.
*/
-->
<decorators>
<preGoal name="compiler:compile" attain="clean:clean"/>
<postGoal name="compiler:compile" attain="jar:install"/>
</decorators>

View File

@ -0,0 +1 @@
jar:jar

View File

@ -0,0 +1,14 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>maven</groupId>
<artifactId>maven-core-it0006</artifactId>
<version>1.0</version>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<type>test</type>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,16 @@
package org.apache.maven.it0000;
public class Person
{
private String name;
public void setName( String name )
{
this.name = name;
}
public String getName()
{
return name;
}
}

View File

@ -0,0 +1,16 @@
package org.apache.maven.it0000;
import junit.framework.TestCase;
public class PersonTest
extends TestCase
{
public void testPerson()
{
Person person = new Person();
person.setName( "foo" );
assertEquals( "foo", person.getName() );
}
}