@@ -391,27 +391,6 @@ public void testGetProxyAuthenticated() throws Exception {
391391 assertEquals (task .getDataString (), new String (listener .baos .toByteArray (), StandardCharsets .UTF_8 ));
392392 }
393393
394- @ Test
395- public void testGetProxyAuthenticatedHttps () throws Exception {
396- httpServer .addSslConnector ();
397- httpServer .setProxyAuthentication ("testuser" , "testpass" );
398- Authentication auth = new AuthenticationBuilder ()
399- .addUsername ("testuser" )
400- .addPassword ("testpass" )
401- .build ();
402- proxy = new Proxy (Proxy .TYPE_HTTPS , httpServer .getHost (), httpServer .getHttpsPort (), auth );
403- newTransporter ("http://bad.localhost:1/" );
404- RecordingTransportListener listener = new RecordingTransportListener ();
405- GetTask task = new GetTask (URI .create ("repo/file.txt" )).setListener (listener );
406- transporter .get (task );
407- assertEquals ("test" , task .getDataString ());
408- assertEquals (0L , listener .dataOffset );
409- assertEquals (4L , listener .dataLength );
410- assertEquals (1 , listener .startedCount );
411- assertTrue ("Count: " + listener .progressedCount , listener .progressedCount > 0 );
412- assertEquals (task .getDataString (), new String (listener .baos .toByteArray (), StandardCharsets .UTF_8 ));
413- }
414-
415394 @ Test
416395 public void testGetProxyUnauthenticated () throws Exception {
417396 httpServer .setProxyAuthentication ("testuser" , "testpass" );
@@ -1159,21 +1138,6 @@ public void testProxyAuthScopeNotUsedForServer() throws Exception {
11591138 }
11601139 }
11611140
1162- @ Test
1163- public void testProxyType () throws Exception {
1164- httpServer .addSslConnector ();
1165- proxy = new Proxy (Proxy .TYPE_HTTPS , httpServer .getHost (), httpServer .getHttpsPort (), null );
1166- newTransporter ("http://bad.localhost:1/" );
1167- try {
1168- transporter .get (new GetTask (URI .create ("foo/file.txt" )));
1169- } catch (HttpResponseException e ) {
1170- assertEquals (404 , e .getStatusCode ());
1171- assertEquals (
1172- "http://bad.localhost:1/foo/file.txt" ,
1173- httpServer .getLogEntries ().get (0 ).path );
1174- }
1175- }
1176-
11771141 @ Test
11781142 public void testAuthSchemeReuse () throws Exception {
11791143 httpServer .setAuthentication ("testuser" , "testpass" );
0 commit comments