]> source.dussan.org Git - archiva.git/commitdiff
add unit test for removeNamespace method
authorOlivier Lamy <olamy@apache.org>
Thu, 6 Sep 2012 12:37:28 +0000 (12:37 +0000)
committerOlivier Lamy <olamy@apache.org>
Thu, 6 Sep 2012 12:37:28 +0000 (12:37 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1381576 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/metadata/metadata-repository-api/src/test/java/org/apache/archiva/metadata/repository/AbstractMetadataRepositoryTest.java

index 4d6198834ca4b7cde782fc4cf5a3b266c5a6b572..e292b9138e80ccb0de4c42e5bc8faa62e3cd0035 100644 (file)
@@ -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