use fest assert

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1490255 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2013-06-06 12:36:04 +00:00
parent d4ed91a79f
commit 49739d4993
1 changed files with 4 additions and 1 deletions

View File

@ -188,7 +188,10 @@ public abstract class AbstractMetadataRepositoryTest
assertEquals( TEST_PROJECT_VERSION, metadata.getId() ); assertEquals( TEST_PROJECT_VERSION, metadata.getId() );
// test that namespace and project is also constructed // 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 ); ProjectMetadata projectMetadata = repository.getProject( TEST_REPO_ID, TEST_NAMESPACE, TEST_PROJECT );
assertNotNull( projectMetadata ); assertNotNull( projectMetadata );
assertEquals( TEST_PROJECT, projectMetadata.getId() ); assertEquals( TEST_PROJECT, projectMetadata.getId() );