summaryrefslogtreecommitdiffstats
path: root/archiva-modules
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2012-09-06 12:37:28 +0000
committerOlivier Lamy <olamy@apache.org>2012-09-06 12:37:28 +0000
commitdd0bc763b3a1e41eb5fed5bfa6abe1892eb8fde9 (patch)
tree57c8a169487a84d722997fd6671aecec163b1623 /archiva-modules
parent911dd05b235fc2b684049b5ab9dac30acf52fce6 (diff)
downloadarchiva-dd0bc763b3a1e41eb5fed5bfa6abe1892eb8fde9.tar.gz
archiva-dd0bc763b3a1e41eb5fed5bfa6abe1892eb8fde9.zip
add unit test for removeNamespace method
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1381576 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules')
-rw-r--r--archiva-modules/metadata/metadata-repository-api/src/test/java/org/apache/archiva/metadata/repository/AbstractMetadataRepositoryTest.java5
1 files changed, 5 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 4d6198834..e292b9138 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
@@ -134,6 +134,11 @@ public abstract class AbstractMetadataRepositoryTest
repository.updateNamespace( TEST_REPO_ID, TEST_NAMESPACE );
assertEquals( Collections.singletonList( TEST_NAMESPACE ), repository.getRootNamespaces( TEST_REPO_ID ) );
+
+ repository.removeNamespace( TEST_REPO_ID, TEST_NAMESPACE );
+
+ assertTrue( repository.getRootNamespaces( TEST_REPO_ID ).isEmpty() );
+
}
@Test