]> source.dussan.org Git - archiva.git/commitdiff
ease debugging
authorOlivier Lamy <olamy@apache.org>
Thu, 30 May 2013 12:31:57 +0000 (12:31 +0000)
committerOlivier Lamy <olamy@apache.org>
Thu, 30 May 2013 12:31:57 +0000 (12:31 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1487828 13f79535-47bb-0310-9956-ffa450edef68

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

index 28b9b458f977d7ab396e6157b0a1b6cc89dc9855..a921cd0832124a4e1fb462f0a4f33f473eaacdd2 100644 (file)
@@ -1220,8 +1220,10 @@ public abstract class AbstractMetadataRepositoryTest
 
         repository.removeArtifact( TEST_REPO_ID, TEST_NAMESPACE, TEST_PROJECT, TEST_PROJECT_VERSION, artifact.getId() );
 
-        assertTrue(
-            repository.getArtifacts( TEST_REPO_ID, TEST_NAMESPACE, TEST_PROJECT, TEST_PROJECT_VERSION ).isEmpty() );
+        Collection<ArtifactMetadata> artifacts =
+            repository.getArtifacts( TEST_REPO_ID, TEST_NAMESPACE, TEST_PROJECT, TEST_PROJECT_VERSION );
+
+        Assertions.assertThat( artifacts ).isNotNull().isEmpty();
     }
 
     @Test