Update Dependency Versions

Fixes gh-386
This commit is contained in:
Rob Winch
2016-02-24 10:03:52 -06:00
parent 8e4ed22974
commit 11ca552625
11 changed files with 80 additions and 24 deletions

View File

@@ -14,7 +14,7 @@ buildscript {
group = 'org.springframework.session'
ext.springBootVersion = '1.2.3.RELEASE'
ext.springBootVersion = '1.3.2.RELEASE'
ext.JAVA_GRADLE = "$rootDir/gradle/java.gradle"
ext.SPRING3_GRADLE = "$rootDir/gradle/spring3.gradle"
ext.MAVEN_GRADLE = "$rootDir/gradle/publish-maven.gradle"

View File

@@ -1,18 +1,22 @@
commonsPoolVersion=2.2
jacksonVersion=2.4.5
commonsPoolVersion=2.4.2
jacksonVersion=2.6.5
jspApiVersion=2.0
servletApiVersion=3.0.1
version=1.1.0.BUILD-SNAPSHOT
springDataRedisVersion=1.4.2.RELEASE
junitVersion=4.11
gebVersion=0.10.0
hazelcastVersion=3.5.1
seleniumVersion=2.44.0
springSecurityVersion=4.0.0.RELEASE
springVersion=4.1.6.RELEASE
jedisVersion=2.5.2
springDataRedisVersion=1.6.2.RELEASE
junitVersion=4.12
gebVersion=0.13.1
hazelcastVersion=3.5.4
seleniumVersion=2.52.0
springSecurityVersion=4.0.3.RELEASE
springVersion=4.2.5.RELEASE
jedisVersion=2.7.3
springDataGemFireVersion=1.7.2.RELEASE
spockVersion=0.7-groovy-2.0
spockVersion=1.0-groovy-2.4
assertjVersion=2.3.0
jstlVersion=1.2.1
groovyVersion=2.3.11
groovyVersion=2.4.4
mockitoVersion=1.10.19
springShellVersion=1.1.0.RELEASE
httpClientVersion=4.5.1
jstlelVersion=1.2.5

View File

@@ -24,7 +24,7 @@ dependencies {
"org.springframework.security:spring-security-web:$springSecurityVersion",
"org.springframework.security:spring-security-config:$springSecurityVersion",
"com.maxmind.geoip2:geoip2:2.3.1",
"org.apache.httpcomponents:httpclient:4.4.1"
"org.apache.httpcomponents:httpclient"
testCompile "org.springframework.boot:spring-boot-starter-test",
"org.assertj:assertj-core:$assertjVersion"

View File

@@ -28,6 +28,10 @@ import pages.*
*/
@Stepwise
class UserTests extends GebReportingSpec {
def setup() {
browser.driver.javascriptEnabled = true
}
def 'first visit not authenticated'() {
when:
to HomePage

View File

@@ -29,9 +29,25 @@ class HomePage extends Page {
navLink { $('#navLink') }
error { $('#error').text() }
form { $('form') }
username(required:false) { $('#un').text() }
logout(required:false) { $('#logout') }
addAccount(required:false) { $('#addAccount') }
username(required:false) {
$('#un').text()
}
userMenu() {
if(!$('#user-menu').displayed) {
$('#toggle').jquery.click()
}
waitFor {
$('#user-menu').displayed
}
}
logout(required:false) {
userMenu()
$('#logout')
}
addAccount(required:false) {
userMenu()
$('#addAccount')
}
submit { $('input[type=submit]') }
login(required:false) { user, pass ->
form.username = user
@@ -39,6 +55,7 @@ class HomePage extends Page {
submit.click(HomePage)
}
switchAccount{ un ->
userMenu()
$("#switchAccount${un}").click(HomePage)
}
attributes { moduleList AttributeRow, $("table tr").tail() }

View File

@@ -28,7 +28,16 @@ class LinkPage extends Page {
static content = {
form { $('#navLinks') }
username(required:false) { $('#un').text() }
userMenu() {
if(!$('#user-menu').displayed) {
$('#toggle').jquery.click()
}
waitFor {
$('#user-menu').displayed
}
}
switchAccount{ un ->
userMenu()
$("#switchAccount${un}").click(HomePage)
}
}

View File

@@ -34,8 +34,8 @@
<c:if test="${currentAccount != null or not empty accounts}">
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><c:out value="${username}"/> <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<a id="toggle" href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><c:out value="${username}"/> <span class="caret"></span></a>
<ul id="user-menu" class="dropdown-menu" role="menu">
<c:if test="${currentAccount != null}">
<li><a id="logout" href="${currentAccount.logoutUrl}">Log Out</a></li>
<li><a id="addAccount" href="${addAccountUrl}">Add Account</a></li>

View File

@@ -29,8 +29,8 @@
<c:if test="${currentAccount != null or not empty accounts}">
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><c:out value="${username}"/> <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<a id="toggle" href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><c:out value="${username}"/> <span class="caret"></span></a>
<ul id="user-menu" class="dropdown-menu" role="menu">
<c:if test="${currentAccount != null}">
<li><a id="logout" href="${currentAccount.logoutUrl}">Log Out</a></li>
<li><a id="addAccount" href="${addAccountUrl}">Add Account</a></li>

View File

@@ -90,6 +90,8 @@ public abstract class AbstractGemFireOperationsSessionRepository extends CacheLi
private ApplicationEventPublisher applicationEventPublisher = new ApplicationEventPublisher() {
public void publishEvent(ApplicationEvent event) {
}
public void publishEvent(Object event) {
}
};
private final GemfireOperations template;

View File

@@ -295,6 +295,8 @@ public class RedisOperationsSessionRepository implements FindByIndexNameSessionR
private ApplicationEventPublisher eventPublisher = new ApplicationEventPublisher() {
public void publishEvent(ApplicationEvent event) {
}
public void publishEvent(Object event) {
}
};
/**

View File

@@ -28,8 +28,11 @@ import org.springframework.session.web.socket.server.SessionRepositoryMessageInt
import org.springframework.web.socket.config.annotation.AbstractWebSocketMessageBrokerConfigurer;
import org.springframework.web.socket.config.annotation.StompEndpointRegistry;
import org.springframework.web.socket.config.annotation.StompWebSocketEndpointRegistration;
import org.springframework.web.socket.config.annotation.WebMvcStompEndpointRegistry;
import org.springframework.web.socket.config.annotation.WebSocketTransportRegistration;
import org.springframework.web.socket.messaging.StompSubProtocolErrorHandler;
import org.springframework.web.socket.server.HandshakeInterceptor;
import org.springframework.web.util.UrlPathHelper;
/**
* Eases configuration of Web Socket and Spring Session integration.
@@ -87,7 +90,10 @@ public abstract class AbstractSessionWebSocketMessageBrokerConfigurer<S extends
}
public final void registerStompEndpoints(StompEndpointRegistry registry) {
configureStompEndpoints(new SessionStompEndpointRegistry(registry, sessionRepositoryInterceptor()));
if(registry instanceof WebMvcStompEndpointRegistry) {
WebMvcStompEndpointRegistry mvcRegistry = (WebMvcStompEndpointRegistry) registry;
configureStompEndpoints(new SessionStompEndpointRegistry(mvcRegistry, sessionRepositoryInterceptor()));
}
}
@@ -126,10 +132,10 @@ public abstract class AbstractSessionWebSocketMessageBrokerConfigurer<S extends
}
static class SessionStompEndpointRegistry implements StompEndpointRegistry {
private final StompEndpointRegistry registry;
private final WebMvcStompEndpointRegistry registry;
private final HandshakeInterceptor interceptor;
public SessionStompEndpointRegistry(StompEndpointRegistry registry,
public SessionStompEndpointRegistry(WebMvcStompEndpointRegistry registry,
HandshakeInterceptor interceptor) {
this.registry = registry;
this.interceptor = interceptor;
@@ -140,5 +146,17 @@ public abstract class AbstractSessionWebSocketMessageBrokerConfigurer<S extends
endpoints.addInterceptors(interceptor);
return endpoints;
}
public void setOrder(int order) {
this.registry.setOrder(order);
}
public void setUrlPathHelper(UrlPathHelper urlPathHelper) {
this.registry.setUrlPathHelper(urlPathHelper);
}
public WebMvcStompEndpointRegistry setErrorHandler(StompSubProtocolErrorHandler errorHandler) {
return this.registry.setErrorHandler(errorHandler);
}
}
}