]> 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 12:58:49 +0000 (12:58 +0000)
committerOlivier Lamy <olamy@apache.org>
Fri, 7 Jun 2013 12:58:49 +0000 (12:58 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1490626 13f79535-47bb-0310-9956-ffa450edef68

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

index 3c6dc9c9e580230151b10c2f7429d276174f253a..9d5e3bfe810cd8b52203aa8edcb59804f88c3a74 100644 (file)
@@ -457,7 +457,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 );
         testFacet = (TestMetadataFacet) metadata.getFacet( TEST_FACET_ID );
         assertFalse( testFacet.toProperties().containsKey( "deleteKey" ) );
     }