TABS -> SPACES
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@947512 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5edc70cd28
commit
60aead5273
|
@ -311,12 +311,12 @@ public class TestRedirects extends BasicServerTestBase {
|
|||
this.localServer.register("*", new HttpRequestHandler() {
|
||||
|
||||
public void handle(
|
||||
final HttpRequest request,
|
||||
final HttpRequest request,
|
||||
final HttpResponse response,
|
||||
final HttpContext context) throws HttpException, IOException {
|
||||
response.setStatusCode(HttpStatus.SC_MOVED_TEMPORARILY);
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
||||
DefaultHttpClient client = new DefaultHttpClient();
|
||||
|
|
|
@ -97,11 +97,11 @@ public class TestNegotiateScheme extends BasicServerTestBase {
|
|||
*
|
||||
*/
|
||||
private static class NegotiateSchemeWithMockGssManager extends NegotiateScheme {
|
||||
|
||||
|
||||
GSSManager manager = EasyMock.createNiceMock(GSSManager.class);
|
||||
GSSName name = EasyMock.createNiceMock(GSSName.class);
|
||||
GSSContext context = EasyMock.createNiceMock(GSSContext.class);
|
||||
|
||||
|
||||
NegotiateSchemeWithMockGssManager() throws Exception {
|
||||
super(null, true);
|
||||
|
||||
|
@ -134,11 +134,11 @@ public class TestNegotiateScheme extends BasicServerTestBase {
|
|||
EasyMock.verify(name);
|
||||
EasyMock.verify(manager);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
private static class UseJaasCredentials implements Credentials {
|
||||
|
||||
|
||||
public String getPassword() {
|
||||
return null;
|
||||
}
|
||||
|
@ -146,22 +146,22 @@ public class TestNegotiateScheme extends BasicServerTestBase {
|
|||
public Principal getUserPrincipal() {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
private static class NegotiateSchemeFactoryWithMockGssManager extends NegotiateSchemeFactory {
|
||||
|
||||
|
||||
NegotiateSchemeWithMockGssManager scheme;
|
||||
|
||||
|
||||
NegotiateSchemeFactoryWithMockGssManager() throws Exception {
|
||||
scheme = new NegotiateSchemeWithMockGssManager();
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public AuthScheme newInstance(HttpParams params) {
|
||||
return scheme;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue