219220221222223224225226227228229
{ if ( wagon != null ) { try { wagon.disconnect(); } catch ( ConnectionException e ) { log.warn( "Unable to disconnect wagon.", e ); }
395396397398399400401402403404405
destFile.deleteOnExit(); wagon.get( "gzip/" + resName, destFile ); wagon.disconnect(); String destContent = FileUtils.fileRead( destFile ); assertEquals( sourceContent, destContent ); }
5859606162636465666768
wagon.get( "hugefile.txt", dest ); Assert.assertTrue( dest.length() >= HUGE_FILE_SIZE ); wagon.disconnect(); } finally { server.start(); }
113114115116117118119120121122123
252253254255256257258259260261262
} finally { try { wagon.disconnect(); } catch ( ConnectionException e ) { getLog().error( "Error disconnecting wagon - ignored", e ); }
233234235236237238239240241242243
9091929394959697
assertTrue( wagon.resourceExists( "target/" ) ); assertTrue( wagon.resourceExists( "pom.xml" ) ); assertFalse( wagon.resourceExists( "pom.xml/" ) ); wagon.disconnect(); } }
293294295296297298299300301302303
666667668669670671672673674675676