]> source.dussan.org Git - archiva.git/commitdiff
use fest assert
authorOlivier Lamy <olamy@apache.org>
Thu, 6 Jun 2013 12:36:04 +0000 (12:36 +0000)
committerOlivier Lamy <olamy@apache.org>
Thu, 6 Jun 2013 12:36:04 +0000 (12:36 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1490255 13f79535-47bb-0310-9956-ffa450edef68

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

index c3fa54ed001c0d189aa896d965a6b17adf593039..3c6dc9c9e580230151b10c2f7429d276174f253a 100644 (file)
@@ -188,7 +188,10 @@ public abstract class AbstractMetadataRepositoryTest
         assertEquals( TEST_PROJECT_VERSION, metadata.getId() );
 
         // test that namespace and project is also constructed
-        assertEquals( Collections.singletonList( TEST_NAMESPACE ), repository.getRootNamespaces( TEST_REPO_ID ) );
+        Collection<String> namespaces = repository.getRootNamespaces( TEST_REPO_ID );
+
+        Assertions.assertThat( namespaces ).isNotNull().isNotEmpty().hasSize( 1 ).contains( TEST_NAMESPACE );
+
         ProjectMetadata projectMetadata = repository.getProject( TEST_REPO_ID, TEST_NAMESPACE, TEST_PROJECT );
         assertNotNull( projectMetadata );
         assertEquals( TEST_PROJECT, projectMetadata.getId() );