assertEquals( expectedArtifacts.size(), artifactMap.size() );
for ( ArtifactMetadata artifact : expectedArtifacts )
{
assertTrue( artifactMap.containsKey( artifact.getVersion() ) );
List<Artifact> list = artifactMap.get( artifact.getVersion() );
Artifact actual = list.get( 0 );
assertEquals( artifact.getNamespace(), actual.getGroupId() );
assertEquals( artifact.getId(),actual.getId() );
// olamy test has no more sense as we reuse an other object now
//assertEquals( artifact.getProject(), actual.getGroupId() );
assertEquals( artifact.getRepositoryId(), actual.getRepositoryId() );
assertEquals( artifact.getVersion(), actual.getVersion() );
assertEquals( TEST_TYPE, actual.getPackaging() );
assertEquals( "12.06 K", actual.getSize() );
// FIXME url path test
//assertEquals( artifact.getNamespace() + "/" + artifact.getProject() + "/" + TEST_SNAPSHOT_VERSION + "/"
// + artifact.getId(), actual.getPath() );
}
}