aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/metadata/metadata-repository-api/src/test
diff options
context:
space:
mode:
authorMaria Odea B. Ching <oching@apache.org>2010-09-28 09:09:32 +0000
committerMaria Odea B. Ching <oching@apache.org>2010-09-28 09:09:32 +0000
commite82ce0f0b50f2db74e998c02384c8f7cfa1ee4a4 (patch)
tree039e39cc54ae6fcbfa442930a69c01e1a1825e55 /archiva-modules/metadata/metadata-repository-api/src/test
parent9baf9de1ce12d6347588583c7011b55c32810f12 (diff)
downloadarchiva-e82ce0f0b50f2db74e998c02384c8f7cfa1ee4a4.tar.gz
archiva-e82ce0f0b50f2db74e998c02384c8f7cfa1ee4a4.zip
merged MRM-980 branch to trunk
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1002059 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/metadata/metadata-repository-api/src/test')
-rw-r--r--archiva-modules/metadata/metadata-repository-api/src/test/java/org/apache/archiva/metadata/repository/AbstractMetadataRepositoryTest.java11
1 files changed, 11 insertions, 0 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 ca59dcc56..fd8362f48 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
@@ -486,6 +486,17 @@ public abstract class AbstractMetadataRepositoryTest
assertTrue( repository.getArtifactsByDateRange( TEST_REPO_ID, null, upper ).isEmpty() );
}
+ public void testGetArtifactsByRepoId()
+ {
+ repository.updateNamespace( TEST_REPO_ID, TEST_NAMESPACE );
+ repository.updateProject( TEST_REPO_ID, createProject() );
+ ArtifactMetadata artifact = createArtifact();
+ repository.updateArtifact( TEST_REPO_ID, TEST_NAMESPACE, TEST_PROJECT, TEST_PROJECT_VERSION, artifact );
+ assertFalse( repository.getArtifacts(TEST_REPO_ID).isEmpty());
+
+
+ }
+
public void testGetNamespacesWithSparseDepth()
{
repository.updateNamespace( TEST_REPO_ID, "org.apache.maven.shared" );