diff options
author | Olivier Lamy <olamy@apache.org> | 2013-06-06 12:36:04 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2013-06-06 12:36:04 +0000 |
commit | 49739d49934cb4cdb73e53646490d07fbdbe0263 (patch) | |
tree | 69c5902fa766a4d1933de5909425cdfb3ae04675 | |
parent | d4ed91a79fc3bcbae85ab9af9ecd0458ef420ee0 (diff) | |
download | archiva-49739d49934cb4cdb73e53646490d07fbdbe0263.tar.gz archiva-49739d49934cb4cdb73e53646490d07fbdbe0263.zip |
use fest assert
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1490255 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | archiva-modules/metadata/metadata-repository-api/src/test/java/org/apache/archiva/metadata/repository/AbstractMetadataRepositoryTest.java | 5 |
1 files changed, 4 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 c3fa54ed0..3c6dc9c9e 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 @@ -188,7 +188,10 @@ public abstract class AbstractMetadataRepositoryTest assertEquals( TEST_PROJECT_VERSION, metadata.getId() ); // test that namespace and project is also constructed - assertEquals( Collections.singletonList( TEST_NAMESPACE ), repository.getRootNamespaces( TEST_REPO_ID ) ); + Collection<String> namespaces = repository.getRootNamespaces( TEST_REPO_ID ); + + Assertions.assertThat( namespaces ).isNotNull().isNotEmpty().hasSize( 1 ).contains( TEST_NAMESPACE ); + ProjectMetadata projectMetadata = repository.getProject( TEST_REPO_ID, TEST_NAMESPACE, TEST_PROJECT ); assertNotNull( projectMetadata ); assertEquals( TEST_PROJECT, projectMetadata.getId() ); |