o adding IT it0010

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@465785 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason van Zyl 2006-10-19 20:41:30 +00:00
parent 58df10e807
commit 41ede01034
3 changed files with 56 additions and 0 deletions

View File

@ -0,0 +1,31 @@
<model>
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.maven</groupId>
<artifactId>maven-core-it0010</artifactId>
<description>Since the artifact resolution does not use the project builder, we must
ensure that the full hierarchy of all dependencies is resolved. This
includes the dependencies of the parent-pom's of dependencies. This test
will check this, by depending on classworlds, which is a dependency of
maven-component, which is the parent of maven-plugin, which is an
explicit dependency of this test.
# TODO: must correct the assumptions of this test
</description>
<packaging>jar</packaging>
<version>1.0</version>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>2.0-beta-1</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<type>jar</type>
<scope>test</scope>
</dependency>
</dependencies>
</model>

View File

@ -0,0 +1,11 @@
package org.apache.maven.it0010;
public class PersonFinder
{
public void findPerson()
throws Exception
{
// look it up at runtime, but do not require it at compile time
Class.forName( "org.codehaus.classworlds.ClassRealm" );
}
}

View File

@ -0,0 +1,14 @@
package org.apache.maven.it0010;
import junit.framework.TestCase;
public class PersonFinderTest
extends TestCase
{
public void testFindPerson()
throws Exception
{
// should be no exceptions
new PersonFinder().findPerson();
}
}