runMethod.invoke( testObject, runParams );
}
catch ( IllegalArgumentException e )
{
throw new TestSetFailedException( testClass.getName(), e );
}
catch ( InstantiationException e )
{
throw new TestSetFailedException( testClass.getName(), e );
}
catch ( IllegalAccessException e )
{
throw new TestSetFailedException( testClass.getName(), e );
}
catch ( InvocationTargetException e )
{
throw new TestSetFailedException( testClass.getName(), e.getTargetException() );
}
catch ( NoSuchMethodException e )
{
throw new TestSetFailedException( "Class is not a JUnit TestCase", e );
}
}