]> source.dussan.org Git - archiva.git/commitdiff
use fest assert to prevent issue with different collection impl
authorOlivier Lamy <olamy@apache.org>
Fri, 7 Jun 2013 13:02:00 +0000 (13:02 +0000)
committerOlivier Lamy <olamy@apache.org>
Fri, 7 Jun 2013 13:02:00 +0000 (13:02 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1490627 13f79535-47bb-0310-9956-ffa450edef68

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

index 9d5e3bfe810cd8b52203aa8edcb59804f88c3a74..462e8d5594b1ece4c37fd2e3424eb815d69722ea 100644 (file)
@@ -442,7 +442,8 @@ public abstract class AbstractMetadataRepositoryTest
         repository.updateProjectVersion( TEST_REPO_ID, TEST_NAMESPACE, TEST_PROJECT, metadata );
 
         metadata = repository.getProjectVersion( TEST_REPO_ID, TEST_NAMESPACE, TEST_PROJECT, TEST_PROJECT_VERSION );
-        assertEquals( Collections.singleton( TEST_FACET_ID ), metadata.getFacetIds() );
+        //assertEquals( Collections.singleton( TEST_FACET_ID ), metadata.getFacetIds() );
+        Assertions.assertThat( metadata.getFacetIds() ).isNotNull().isNotEmpty().hasSize( 1 ).contains( TEST_FACET_ID );
 
         TestMetadataFacet testFacet = (TestMetadataFacet) metadata.getFacet( TEST_FACET_ID );
         Map<String, String> facetProperties = testFacet.toProperties();