finishing move

This commit is contained in:
eugenp
2013-08-04 13:18:12 +03:00
parent aaf7a64711
commit 7c23ee9dde
3 changed files with 5 additions and 5 deletions

View File

@@ -31,7 +31,7 @@ public class ClientLiveTest {
final DefaultHttpClient httpClient = (DefaultHttpClient) requestFactory.getHttpClient();
httpClient.getCredentialsProvider().setCredentials(new AuthScope("localhost", 8080, AuthScope.ANY_REALM), new UsernamePasswordCredentials("user", "userPass"));
final ResponseEntity<Foo> responseEntity = restTemplate.exchange("http://localhost:8080/spring-security-rest-template/api/foos/1", HttpMethod.GET, null, Foo.class);
final ResponseEntity<Foo> responseEntity = restTemplate.exchange("http://localhost:8080/spring-security-rest-basic-auth/api/foos/1", HttpMethod.GET, null, Foo.class);
System.out.println(responseEntity.getStatusCode());
}

View File

@@ -34,7 +34,7 @@ public class RawClientLiveTest {
configureViaRawApi(timeout, httpParams);
// configureViaHighLevelApi(timeout, httpParams);
final HttpGet getMethod = new HttpGet("http://localhost:8080/spring-security-rest-template/api/bars/1");
final HttpGet getMethod = new HttpGet("http://localhost:8080/spring-security-rest-basic-auth/api/bars/1");
final int hardTimeout = 5; // seconds
final TimerTask task = new TimerTask() {