mirror of
https://github.com/apache/maven.git
synced 2025-02-28 21:59:13 +00:00
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:
parent
58df10e807
commit
41ede01034
@ -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>
|
@ -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" );
|
||||||
|
}
|
||||||
|
}
|
@ -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();
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user