PR: MRM-42

Submitted by: Maria Odea Ching

Class for discovering repository metadata and fixed failing tests on DefaultArtifactDiscovererTest and LegacyArtifactDiscovererTest

git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@357620 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Edwin L. Punzalan 2005-12-19 03:04:49 +00:00
parent 053d76faff
commit 94473e23b3
5 changed files with 16 additions and 3 deletions

View File

@ -21,5 +21,13 @@
<groupId>org.apache.maven</groupId>
<artifactId>maven-artifact</artifactId>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-repository-metadata</artifactId>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-artifact-manager</artifactId>
</dependency>
</dependencies>
</project>

View File

@ -1,5 +1,11 @@
<component-set>
<components>
<component>
<role>org.apache.maven.repository.discovery.MetadataDiscoverer</role>
<role-hint>default</role-hint>
<implementation>org.apache.maven.repository.discovery.DefaultMetadataDiscoverer</implementation>
<instantiation-strategy>per-lookup</instantiation-strategy>
</component>
<component>
<role>org.apache.maven.repository.discovery.ArtifactDiscoverer</role>
<role-hint>legacy</role-hint>
@ -11,7 +17,6 @@
</requirement>
</requirements>
</component>
<component>
<role>org.apache.maven.repository.discovery.ArtifactDiscoverer</role>
<role-hint>default</role-hint>

View File

@ -276,7 +276,7 @@ public class DefaultArtifactDiscovererTest
assertNotNull( "Check artifacts not null", artifacts );
assertTrue( "Check normal included",
artifacts.contains( createArtifact( "org.apache.maven", "testing", "1.0", "java-source" ) ) );
artifacts.contains( createArtifact( "org.apache.maven", "testing", "1.0", "java-source", "sources" ) ) );
}
public void testDistributionInclusion()

View File

@ -261,7 +261,7 @@ public class LegacyArtifactDiscovererTest
assertNotNull( "Check artifacts not null", artifacts );
assertTrue( "Check normal included",
artifacts.contains( createArtifact( "org.apache.maven", "testing", "1.0", "java-source" ) ) );
artifacts.contains( createArtifact( "org.apache.maven", "testing", "1.0", "java-source", "sources" ) ) );
}
public void testDistributionInclusion()