mirror of https://github.com/apache/archiva.git
[MRM-1194] Archiva doesn't cope with versions in a pom.xml that are properties
o updated test cases git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@804909 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
51ece6699a
commit
4be2924979
|
@ -26,6 +26,7 @@ import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration;
|
|||
import org.apache.maven.archiva.model.ArchivaProjectModel;
|
||||
import org.apache.maven.archiva.model.VersionedReference;
|
||||
import org.apache.maven.archiva.repository.content.ManagedDefaultRepositoryContent;
|
||||
import org.apache.maven.archiva.repository.project.ProjectModelException;
|
||||
import org.apache.maven.archiva.repository.project.readers.ProjectModel400Reader;
|
||||
import org.codehaus.plexus.spring.PlexusInSpringTestCase;
|
||||
|
||||
|
@ -72,7 +73,14 @@ public class ManagedRepositoryProjectResolverTest
|
|||
}
|
||||
catch ( Exception e )
|
||||
{
|
||||
fail( "The latest timestamp should have been found!" );
|
||||
if( e instanceof ProjectModelException )
|
||||
{
|
||||
fail( "A ProjectModelException should not have occurred. Instead, the latest timestamp should have been found!" );
|
||||
}
|
||||
else
|
||||
{
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -119,11 +127,11 @@ public class ManagedRepositoryProjectResolverTest
|
|||
try
|
||||
{
|
||||
resolver.resolveProjectModel( ref );
|
||||
fail( "An exception should have been thrown." );
|
||||
fail( "A ProjectModelException should have been thrown." );
|
||||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
assertTrue( true );
|
||||
assertTrue( e instanceof ProjectModelException );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue