add unit test for removeNamespace method

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1381576 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-09-06 12:37:28 +00:00
parent 911dd05b23
commit dd0bc763b3
1 changed files with 5 additions and 0 deletions

View 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