mirror of https://github.com/apache/archiva.git
simplify test
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@806324 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
76c66f5a83
commit
0a4b078b01
|
@ -71,17 +71,10 @@ public class ManagedRepositoryProjectResolverTest
|
|||
assertEquals( "1.0-SNAPSHOT", model.getVersion() );
|
||||
assertEquals( "Unique Version Snapshot - Build 3", model.getName() );
|
||||
}
|
||||
catch ( Exception e )
|
||||
{
|
||||
if( e instanceof ProjectModelException )
|
||||
catch ( ProjectModelException e )
|
||||
{
|
||||
fail( "A ProjectModelException should not have occurred. Instead, the latest timestamp should have been found!" );
|
||||
}
|
||||
else
|
||||
{
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void testResolveSnapshotGenericVersionPresent()
|
||||
|
@ -129,9 +122,9 @@ public class ManagedRepositoryProjectResolverTest
|
|||
resolver.resolveProjectModel( ref );
|
||||
fail( "A ProjectModelException should have been thrown." );
|
||||
}
|
||||
catch( Exception e )
|
||||
catch( ProjectModelException e )
|
||||
{
|
||||
assertTrue( e instanceof ProjectModelException );
|
||||
assertTrue( true );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue