Upgrade to Servlet API 4.0 for MVC and merge EhCache 3 tests into spring-context-support
Includes general streamlining of dependency declarations with reduced version variables, direct use of EclipseLink 2.7 and its implicit JPA 2.2 dependency in spring-orm, mixed use of Hibernate 5.2.10 and 5.1.10 for integration tests, as well as an upgrade to Jetty 9.4.7 RC0 and a downgrade to Groovy 2.4.12 (since Groovy 2.5 won't be final in time for Spring Framework 5.0). Issue: SPR-15879 Issue: SPR-15880
This commit is contained in:
@@ -23,7 +23,6 @@ import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
import javax.validation.Valid;
|
||||
|
||||
import org.junit.Rule;
|
||||
import org.junit.Test;
|
||||
@@ -46,6 +45,7 @@ import org.springframework.messaging.support.MessageBuilder;
|
||||
import org.springframework.util.ReflectionUtils;
|
||||
import org.springframework.validation.Errors;
|
||||
import org.springframework.validation.Validator;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
@@ -219,7 +219,7 @@ public class DefaultMessageHandlerMethodFactoryTests {
|
||||
invocations.put("simpleString", true);
|
||||
}
|
||||
|
||||
public void payloadValidation(@Payload @Valid String value) {
|
||||
public void payloadValidation(@Payload @Validated String value) {
|
||||
invocations.put("payloadValidation", true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user