diff options
author | Brett Porter <brett@apache.org> | 2011-03-26 14:00:06 +0000 |
---|---|---|
committer | Brett Porter <brett@apache.org> | 2011-03-26 14:00:06 +0000 |
commit | bed7aa1b59b2a4a824a89a2e492567330d08ffb9 (patch) | |
tree | 36885c95e392a9d358ba650841183a3a9da73d2e /archiva-modules/metadata | |
parent | 1a95fa3b64a984666aa005968001b898777006f9 (diff) | |
download | archiva-bed7aa1b59b2a4a824a89a2e492567330d08ffb9.tar.gz archiva-bed7aa1b59b2a4a824a89a2e492567330d08ffb9.zip |
[MRM-1327] fix 'used by' to work under JCR store. This will still have problems under the file store at the moment
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1085722 13f79535-47bb-0310-9956-ffa450edef68
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 { |