From: Olivier Lamy Date: Thu, 30 May 2013 12:31:57 +0000 (+0000) Subject: ease debugging X-Git-Tag: archiva-2.0.0-RC1~345 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3758c79859ab027ccedccb8e1cc8b85a4414a91a;p=archiva.git ease debugging git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1487828 13f79535-47bb-0310-9956-ffa450edef68 --- 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 28b9b458f..a921cd083 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 @@ -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 artifacts = + repository.getArtifacts( TEST_REPO_ID, TEST_NAMESPACE, TEST_PROJECT, TEST_PROJECT_VERSION ); + + Assertions.assertThat( artifacts ).isNotNull().isEmpty(); } @Test