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

@ -1,10 +1,10 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.baeldung</groupId>
<artifactId>spring-security-rest-template</artifactId>
<artifactId>spring-security-rest-basic-auth</artifactId>
<version>0.1-SNAPSHOT</version>
<name>spring-security-rest-template</name>
<name>spring-security-rest-basic-auth</name>
<packaging>war</packaging>
<dependencies>
@ -217,7 +217,7 @@
</dependencies>
<build>
<finalName>spring-security-rest-template</finalName>
<finalName>spring-security-rest-basic-auth</finalName>
<resources>
<resource>
<directory>src/main/resources</directory>

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() {