maven upgrades, quick testing work

This commit is contained in:
eugenp
2014-05-07 11:55:30 +03:00
parent a4f71ef281
commit 80c3ca190f
26 changed files with 106 additions and 99 deletions

View File

@@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.baeldung</groupId>
<artifactId>spring-security-rest-basic-auth</artifactId>
<version>0.1-SNAPSHOT</version>
<version>0.2-SNAPSHOT</version>
<name>spring-security-rest-basic-auth</name>
<packaging>war</packaging>
@@ -88,7 +88,7 @@
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.2.2</version>
<version>2.2.3</version>
</dependency>
<!-- http -->
@@ -286,12 +286,12 @@
<properties>
<!-- Spring -->
<org.springframework.version>4.0.3.RELEASE</org.springframework.version>
<org.springframework.version>4.0.4.RELEASE</org.springframework.version>
<org.springframework.security.version>3.2.3.RELEASE</org.springframework.security.version>
<!-- persistence -->
<hibernate.version>4.3.5.Final</hibernate.version>
<mysql-connector-java.version>5.1.29</mysql-connector-java.version>
<mysql-connector-java.version>5.1.30</mysql-connector-java.version>
<!-- http -->
<httpcore.version>4.3.2</httpcore.version>
@@ -305,7 +305,7 @@
<hibernate-validator.version>5.0.3.Final</hibernate-validator.version>
<!-- util -->
<guava.version>16.0.1</guava.version>
<guava.version>17.0</guava.version>
<commons-lang3.version>3.3.1</commons-lang3.version>
<!-- testing -->
@@ -319,7 +319,7 @@
<maven-compiler-plugin.version>3.1</maven-compiler-plugin.version>
<maven-war-plugin.version>2.4</maven-war-plugin.version>
<maven-surefire-plugin.version>2.17</maven-surefire-plugin.version>
<cargo-maven2-plugin.version>1.4.7</cargo-maven2-plugin.version>
<cargo-maven2-plugin.version>1.4.8</cargo-maven2-plugin.version>
</properties>

View File

@@ -31,7 +31,11 @@ import org.apache.http.impl.conn.PoolingClientConnectionManager;
import org.junit.Ignore;
import org.junit.Test;
public class RawClientLiveTest {
/**
* This test requires a localhost server over HTTPS <br>
* It should only be manually run, not part of the automated build
* */
public class HttpsClientLiveManualTest {
// tests
@@ -70,6 +74,7 @@ public class RawClientLiveTest {
assertThat(response.getStatusLine().getStatusCode(), equalTo(200));
}
@SuppressWarnings("deprecation")
@Test
public final void givenHttpClientPre4_3_whenAcceptingAllCertificates_thenCanConsumeHttpsUriWithSelfSignedCertificate() throws IOException, GeneralSecurityException {
final TrustStrategy acceptingTrustStrategy = new TrustStrategy() {
@@ -89,6 +94,8 @@ public class RawClientLiveTest {
final HttpGet getMethod = new HttpGet(urlOverHttps);
final HttpResponse response = httpClient.execute(getMethod);
assertThat(response.getStatusLine().getStatusCode(), equalTo(200));
httpClient.close();
}
@Test