diff options
author | Olivier Lamy <olamy@apache.org> | 2013-06-07 13:02:00 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2013-06-07 13:02:00 +0000 |
commit | 484563403681c371f8fa7ff62f0268d6d890adf5 (patch) | |
tree | 82a7bc7ffe7bc41d1ff4c9dd780a243e27646e97 | |
parent | 326552d549c2357b1afccf32334f4ff640c56aab (diff) | |
download | archiva-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
-rw-r--r-- | archiva-modules/metadata/metadata-repository-api/src/test/java/org/apache/archiva/metadata/repository/AbstractMetadataRepositoryTest.java | 3 |
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(); |