diff options
Diffstat (limited to 'archiva-modules/metadata')
-rw-r--r-- | archiva-modules/metadata/metadata-repository-api/src/test/java/org/apache/archiva/metadata/repository/AbstractMetadataRepositoryTest.java | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/archiva-modules/metadata/metadata-repository-api/src/test/java/org/apache/archiva/metadata/repository/AbstractMetadataRepositoryTest.java b/archiva-modules/metadata/metadata-repository-api/src/test/java/org/apache/archiva/metadata/repository/AbstractMetadataRepositoryTest.java index 9eea712e5..2d9c87bd7 100644 --- a/archiva-modules/metadata/metadata-repository-api/src/test/java/org/apache/archiva/metadata/repository/AbstractMetadataRepositoryTest.java +++ b/archiva-modules/metadata/metadata-repository-api/src/test/java/org/apache/archiva/metadata/repository/AbstractMetadataRepositoryTest.java @@ -30,7 +30,6 @@ import org.apache.archiva.metadata.model.MetadataFacetFactory; import org.apache.archiva.metadata.model.Organization; import org.apache.archiva.metadata.model.ProjectMetadata; import org.apache.archiva.metadata.model.ProjectVersionMetadata; -import org.apache.archiva.metadata.model.ProjectVersionReference; import org.apache.archiva.metadata.model.Scm; import org.codehaus.plexus.spring.PlexusInSpringTestCase; @@ -307,29 +306,6 @@ public abstract class AbstractMetadataRepositoryTest assertTrue( d.isOptional() ); } - public void testUpdateProjectReference() - throws Exception - { - ProjectVersionReference reference = new ProjectVersionReference(); - reference.setNamespace( "another.namespace" ); - reference.setProjectId( "another-project-id" ); - reference.setProjectVersion( "1.1" ); - reference.setReferenceType( ProjectVersionReference.ReferenceType.DEPENDENCY ); - - repository.updateProjectReference( TEST_REPO_ID, TEST_NAMESPACE, TEST_PROJECT, TEST_PROJECT_VERSION, - reference ); - - Collection<ProjectVersionReference> references = repository.getProjectReferences( TEST_REPO_ID, TEST_NAMESPACE, - TEST_PROJECT, - TEST_PROJECT_VERSION ); - assertEquals( 1, references.size() ); - reference = references.iterator().next(); - assertEquals( "another.namespace", reference.getNamespace() ); - assertEquals( "another-project-id", reference.getProjectId() ); - assertEquals( "1.1", reference.getProjectVersion() ); - assertEquals( ProjectVersionReference.ReferenceType.DEPENDENCY, reference.getReferenceType() ); - } - public void testGetRepositories() throws Exception { |