On 25/05/2011, at 2:11 AM, strub...@apache.org wrote: > > import org.apache.maven.wagon.authentication.AuthenticationException; > import org.apache.maven.wagon.authorization.AuthorizationException; > @@ -42,6 +44,8 @@ import org.codehaus.plexus.util.IOUtil; > public abstract class StreamingWagonTestCase > extends WagonTestCase > { > + private static Logger logger = Logger.getLogger( > StreamingWagonTestCase.class.getName() ); > + > public void testStreamingWagon() > throws Exception > { > @@ -257,6 +261,10 @@ public abstract class StreamingWagonTest > stream = new FileInputStream( sourceFile ); > wagon.putFromStream( stream, resource, sourceFile.length(), > sourceFile.lastModified() ); > } > + catch( Exception e ) > + { > + logger.log( Level.SEVERE, "error while putting resources to the > FTP Server", e ); > + } > finally > { > IOUtil.close( stream ); > @@ -289,6 +297,10 @@ public abstract class StreamingWagonTest > stream = new FileOutputStream( destFile ); > wagon.getToStream( this.resource, stream ); > } > + catch( Exception e ) > + { > + logger.log( Level.SEVERE, "error while reading resources from > the FTP Server", e ); > + } > finally > { > IOUtil.close( stream );
Why should the tests ignore these exceptions? - Brett -- Brett Porter br...@apache.org http://brettporter.wordpress.com/ http://au.linkedin.com/in/brettporter --------------------------------------------------------------------- To unsubscribe, e-mail: wagon-dev-unsubscr...@maven.apache.org For additional commands, e-mail: wagon-dev-h...@maven.apache.org