use of org.apache.archiva.metadata.repository.storage.RepositoryStorageMetadataInvalidException in project archiva by apache.
the class Maven2RepositoryMetadataResolverTest method testGetProjectVersionMetadataForMislocatedPom.
@Test
public void testGetProjectVersionMetadataForMislocatedPom() throws Exception {
try {
storage.readProjectVersionMetadata(new ReadMetadataRequest(TEST_REPO_ID, "com.example.test", "mislocated-pom", "1.0"));
fail("Should have received an exception due to mislocated POM");
} catch (RepositoryStorageMetadataInvalidException e) {
assertEquals("mislocated-pom", e.getId());
}
}
Aggregations