580581582583584585586587588589590
{ if ( wagon != null ) { try { wagon.disconnect(); } catch ( ConnectionException e ) { getLogger().warn( "Unable to disconnect wagon.", e ); }
225226227228229230231232233234235
destFile.deleteOnExit(); wagon.get( "testDirectory/test-resource-1.txt", destFile ); wagon.disconnect(); } tearDownWagonTestingFixtures();
517518519520521522523524525526527
destFile.deleteOnExit(); wagon.get( "gzip/" + resName, destFile ); wagon.disconnect(); String destContent = FileUtils.fileRead( destFile ); assertEquals( sourceContent, destContent ); }
296297298299300301302303304305306
catch ( ResourceDoesNotExistException e ) { } wagon.disconnect(); tearDownWagonTestingFixtures(); }
6162636465666768697071
File destFile = FileTestUtils.createUniqueFile( getName(), getName() ); destFile.deleteOnExit(); wagon.get( "/timeoutfile", destFile ); wagon.disconnect(); } catch ( Exception e ) { thrown = e; }
93949596979899100101102103
wagon.connect( testRepository ); wagon.resourceExists( "/timeoutfile" ); wagon.disconnect(); } catch ( Exception e ) { thrown = e; }
125126127128129130131132133134135
wagon.connect( testRepository ); wagon.getFileList( "/timeoutfile" ); wagon.disconnect(); } catch ( Exception e ) { thrown = e; }
160161162163164165166167168169170
File destFile = File.createTempFile( "Hello", null ); destFile.deleteOnExit(); wagon.put( destFile, "/timeoutfile" ); wagon.disconnect(); } catch ( Exception e ) { thrown = e; }
7879808182838485868788
wagon.get( "hugefile.txt", dest ); Assert.assertTrue( dest.length() >= HUGE_FILE_SIZE ); wagon.disconnect(); } finally { server.start(); dest.delete();
136137138139140141142143144145146