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

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

index a921cd0832124a4e1fb462f0a4f33f473eaacdd2..201a8fe82f317fdc152152f47363e3fd1531bb9b 100644 (file)
@@ -1215,12 +1215,14 @@ public abstract class AbstractMetadataRepositoryTest
 
         repository.updateArtifact( TEST_REPO_ID, TEST_NAMESPACE, TEST_PROJECT, TEST_PROJECT_VERSION, artifact );
 
-        assertEquals( Collections.singletonList( artifact ), new ArrayList<ArtifactMetadata>(
-            repository.getArtifacts( TEST_REPO_ID, TEST_NAMESPACE, TEST_PROJECT, TEST_PROJECT_VERSION ) ) );
+        Collection<ArtifactMetadata> artifacts =
+            repository.getArtifacts( TEST_REPO_ID, TEST_NAMESPACE, TEST_PROJECT, TEST_PROJECT_VERSION );
+
+        assertEquals( Collections.singletonList( artifact ), new ArrayList<ArtifactMetadata>( artifacts ) );
 
         repository.removeArtifact( TEST_REPO_ID, TEST_NAMESPACE, TEST_PROJECT, TEST_PROJECT_VERSION, artifact.getId() );
 
-        Collection<ArtifactMetadata> artifacts =
+        artifacts =
             repository.getArtifacts( TEST_REPO_ID, TEST_NAMESPACE, TEST_PROJECT, TEST_PROJECT_VERSION );
 
         Assertions.assertThat( artifacts ).isNotNull().isEmpty();