498499500501502503504505506507508
assertEquals( 1, redirectHandler.handlerRequestResponses.size() ); assertEquals( 302, redirectHandler.handlerRequestResponses.get( 0 ).responseCode ); } finally { wagon.disconnect(); server.stop(); tmpResult.delete(); }
560561562563564565566567568569570
967968969970971972973974975976977
} finally { System.setProperty( "http.proxyHost", "" ); System.setProperty( "http.proxyPort", "" ); wagon.disconnect(); } } finally { proxyServer.stop();
10531054105510561057105810591060106110621063
{ wagon.get( "test-secured-resource", file ); } finally { wagon.disconnect(); } FileInputStream in = new FileInputStream( file ); assertEquals( "top secret", IOUtil.toString( in ) );
11061107110811091110111111121113111411151116
{ wagon.getToStream( "test-secured-resource", out ); } finally { wagon.disconnect(); } assertEquals( "top secret", out.toString() ); TestSecurityHandler securityHandler = (TestSecurityHandler) ( (Context) server.getHandler() ).getHandler();