archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1489838 - /archiva/trunk/archiva-modules/metadata/metadata-repository-api/src/test/java/org/apache/archiva/metadata/repository/AbstractMetadataRepositoryTest.java
Date Wed, 05 Jun 2013 12:40:23 GMT
Author: olamy
Date: Wed Jun  5 12:40:22 2013
New Revision: 1489838

URL: http://svn.apache.org/r1489838
Log:
use fest assert

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

Modified: archiva/trunk/archiva-modules/metadata/metadata-repository-api/src/test/java/org/apache/archiva/metadata/repository/AbstractMetadataRepositoryTest.java
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/metadata/metadata-repository-api/src/test/java/org/apache/archiva/metadata/repository/AbstractMetadataRepositoryTest.java?rev=1489838&r1=1489837&r2=1489838&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/metadata/metadata-repository-api/src/test/java/org/apache/archiva/metadata/repository/AbstractMetadataRepositoryTest.java
(original)
+++ archiva/trunk/archiva-modules/metadata/metadata-repository-api/src/test/java/org/apache/archiva/metadata/repository/AbstractMetadataRepositoryTest.java
Wed Jun  5 12:40:22 2013
@@ -1004,10 +1004,22 @@ public abstract class AbstractMetadataRe
     {
         repository.updateNamespace( TEST_REPO_ID, "org.apache.maven.shared" );
 
-        assertEquals( Arrays.asList( "org" ), repository.getRootNamespaces( TEST_REPO_ID
) );
-        assertEquals( Arrays.asList( "apache" ), repository.getNamespaces( TEST_REPO_ID,
"org" ) );
-        assertEquals( Arrays.asList( "maven" ), repository.getNamespaces( TEST_REPO_ID, "org.apache"
) );
-        assertEquals( Arrays.asList( "shared" ), repository.getNamespaces( TEST_REPO_ID,
"org.apache.maven" ) );
+        Collection<String> namespaces =  repository.getRootNamespaces( TEST_REPO_ID
);
+
+        //assertEquals( Arrays.asList( "org" ), repository.getRootNamespaces( TEST_REPO_ID
) );
+        Assertions.assertThat( namespaces ).isNotNull().isNotEmpty().hasSize( 1 ).contains(
"org" );
+
+        //assertEquals( Arrays.asList( "apache" ), repository.getNamespaces( TEST_REPO_ID,
"org" ) );
+        namespaces = repository.getNamespaces( TEST_REPO_ID, "org" );
+        Assertions.assertThat( namespaces ).isNotNull().isNotEmpty().hasSize( 1 ).contains(
"org" );
+
+        //assertEquals( Arrays.asList( "maven" ), repository.getNamespaces( TEST_REPO_ID,
"org.apache" ) );
+        namespaces = repository.getNamespaces( TEST_REPO_ID, "org.apache" );
+        Assertions.assertThat( namespaces ).isNotNull().isNotEmpty().hasSize( 1 ).contains(
"maven" );
+
+        //assertEquals( Arrays.asList( "shared" ), repository.getNamespaces( TEST_REPO_ID,
"org.apache.maven" ) );
+        namespaces = repository.getNamespaces( TEST_REPO_ID, "org.apache.maven" );
+        Assertions.assertThat( namespaces ).isNotNull().isNotEmpty().hasSize( 1 ).contains(
"shared" );
     }
 
     @Test



Mime
View raw message