summaryrefslogtreecommitdiffstats
path: root/archiva-modules/metadata
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2013-06-07 13:02:00 +0000
committerOlivier Lamy <olamy@apache.org>2013-06-07 13:02:00 +0000
commit484563403681c371f8fa7ff62f0268d6d890adf5 (patch)
tree82a7bc7ffe7bc41d1ff4c9dd780a243e27646e97 /archiva-modules/metadata
parent326552d549c2357b1afccf32334f4ff640c56aab (diff)
downloadarchiva-484563403681c371f8fa7ff62f0268d6d890adf5.tar.gz
archiva-484563403681c371f8fa7ff62f0268d6d890adf5.zip
use fest assert to prevent issue with different collection impl
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1490627 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/metadata')
-rw-r--r--archiva-modules/metadata/metadata-repository-api/src/test/java/org/apache/archiva/metadata/repository/AbstractMetadataRepositoryTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/archiva-modules/metadata/metadata-repository-api/src/test/java/org/apache/archiva/metadata/repository/AbstractMetadataRepositoryTest.java b/archiva-modules/metadata/metadata-repository-api/src/test/java/org/apache/archiva/metadata/repository/AbstractMetadataRepositoryTest.java
index 9d5e3bfe8..462e8d559 100644
--- a/archiva-modules/metadata/metadata-repository-api/src/test/java/org/apache/archiva/metadata/repository/AbstractMetadataRepositoryTest.java
+++ b/archiva-modules/metadata/metadata-repository-api/src/test/java/org/apache/archiva/metadata/repository/AbstractMetadataRepositoryTest.java
@@ -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();