simplify test

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@806324 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Porter 2009-08-20 19:45:05 +00:00
parent 76c66f5a83
commit 0a4b078b01
1 changed files with 4 additions and 11 deletions

View File

@ -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 );
}
}