]> source.dussan.org Git - archiva.git/commitdiff
use fest assert
authorOlivier Lamy <olamy@apache.org>
Tue, 4 Jun 2013 12:54:08 +0000 (12:54 +0000)
committerOlivier Lamy <olamy@apache.org>
Tue, 4 Jun 2013 12:54:08 +0000 (12:54 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1489421 13f79535-47bb-0310-9956-ffa450edef68

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

index abc3e9384b7b19c11baa7eee505f6d452a2ed7f2..2969da5435e6da01ed87c9ff9a2afaabca626934 100644 (file)
@@ -1243,11 +1243,15 @@ public abstract class AbstractMetadataRepositoryTest
 
         repository.updateArtifact( TEST_REPO_ID, TEST_NAMESPACE, TEST_PROJECT, TEST_PROJECT_VERSION, artifact );
 
-        assertEquals( 1, repository.getProjectVersions( TEST_REPO_ID, TEST_NAMESPACE, TEST_PROJECT ).size() );
+        Collection<String> versions = repository.getProjectVersions( TEST_REPO_ID, TEST_NAMESPACE, TEST_PROJECT );
+
+        Assertions.assertThat( versions ).isNotNull().isNotEmpty().hasSize( 1 );
 
         repository.removeProjectVersion( TEST_REPO_ID, TEST_NAMESPACE, TEST_PROJECT, TEST_PROJECT_VERSION );
 
-        assertEquals( 0, repository.getProjectVersions( TEST_REPO_ID, TEST_NAMESPACE, TEST_PROJECT ).size() );
+        versions = repository.getProjectVersions( TEST_REPO_ID, TEST_NAMESPACE, TEST_PROJECT );
+
+        Assertions.assertThat( versions ).isNotNull().isEmpty();
     }
 
     @Test