@@ -391,27 +391,6 @@ public void testGetProxyAuthenticated() throws Exception {
391
391
assertEquals (task .getDataString (), new String (listener .baos .toByteArray (), StandardCharsets .UTF_8 ));
392
392
}
393
393
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
-
415
394
@ Test
416
395
public void testGetProxyUnauthenticated () throws Exception {
417
396
httpServer .setProxyAuthentication ("testuser" , "testpass" );
@@ -1159,21 +1138,6 @@ public void testProxyAuthScopeNotUsedForServer() throws Exception {
1159
1138
}
1160
1139
}
1161
1140
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
-
1177
1141
@ Test
1178
1142
public void testAuthSchemeReuse () throws Exception {
1179
1143
httpServer .setAuthentication ("testuser" , "testpass" );
0 commit comments