Go to file
Simon Baslé 95883b9eb7
Rename MockMVC matcher methods to prevent regression in user tests
This commit changes the name of two recently introduced methods in the
`MockRestRequestMatchers` class for header and queryParam. These have
been found to cause false negatives in user tests, due to the new
overload taking precedence in some cases.

Namely, using a `Matcher` factory method which can apply to both `List`
and `String` will cause the compiler to select the newest list overload,
by instantiating a `Matcher<Object>`.

This can cause false negatives in user tests, failing tests that used
to pass because the Matcher previously applied to the first String in
the header or queryParam value list. For instance, `equalsTo("a")`.

The new overloads are recent enough and this has enough potential to
cause an arbitrary number of user tests to fail that we break the API
to eliminate the ambiguity, by renaming the methods with a `*List`
suffix.

Closes gh-30220
Closes gh-30238
See gh-29953
See gh-28660
2023-04-04 15:06:14 +02:00
.github Restore top-level read permission for backport bot 2022-12-09 12:02:56 +00:00
buildSrc Polishing 2023-03-24 16:05:40 +01:00
ci Fix JDK20 env variable declaration in CI pipeline 2023-04-03 09:43:37 +02:00
framework-bom
framework-docs Fix incorrect jakarta.inject artifact version 2023-04-03 09:36:22 +02:00
framework-platform Upgrade dependencies 2023-04-02 19:20:49 +02:00
gradle Upgrade to Gradle 8 2023-04-01 18:36:28 +02:00
integration-tests Update copyright headers 2023-01-19 16:20:03 +01:00
spring-aop Use JdkDynamicAopProxy class loader instead of JDK bootstrap/platform loader 2023-03-29 13:46:29 +02:00
spring-aspects Update copyright headers 2023-03-13 21:53:40 +01:00
spring-beans Update copyright headers 2023-04-03 16:45:49 +02:00
spring-context Improve Javadoc for @PropertySource 2023-04-01 18:15:19 +02:00
spring-context-indexer Ensure all packages declare package-info.java with null-safety annotations 2023-03-10 17:33:52 +01:00
spring-context-support Avoid lock contention in CaffeineCacheManager 2023-03-08 16:23:32 +01:00
spring-core Update copyright headers 2023-04-03 16:45:49 +02:00
spring-core-test Update copyright headers 2023-03-13 21:53:40 +01:00
spring-expression Polishing 2023-04-03 14:42:38 +02:00
spring-instrument Ensure all packages declare package-info.java with null-safety annotations 2023-03-10 17:33:52 +01:00
spring-jcl Apply "instanceof pattern matching" in spring-jcl module 2023-03-06 14:56:53 +01:00
spring-jdbc Ensure all packages declare package-info.java with null-safety annotations 2023-03-10 17:33:52 +01:00
spring-jms Consistently declare Object::equals argument as @Nullable 2023-03-13 21:43:21 +01:00
spring-messaging Update copyright headers 2023-04-03 16:45:49 +02:00
spring-orm Disable affected tests on Java 18+/19+ 2023-03-24 16:05:40 +01:00
spring-oxm Apply "instanceof pattern matching" in remainder of spring-oxm module 2023-03-06 17:07:49 +01:00
spring-r2dbc Update copyright headers 2023-03-13 21:53:40 +01:00
spring-test Rename MockMVC matcher methods to prevent regression in user tests 2023-04-04 15:06:14 +02:00
spring-tx Polishing 2023-03-12 18:38:50 +01:00
spring-web Update copyright headers 2023-04-03 16:45:49 +02:00
spring-webflux Add non-null assertions in DefaultServerResponseBuilder 2023-04-04 12:36:46 +02:00
spring-webmvc Add non-null assertions in DefaultServerResponseBuilder 2023-04-04 12:36:46 +02:00
spring-websocket Fix example in Javadoc for @EnableWebSocket 2023-03-24 17:54:33 +01:00
src Polishing 2023-03-12 18:38:50 +01:00
.editorconfig
.gitattributes
.gitignore Fix .gitignore pattern for Maven "target" folders 2023-02-28 16:36:32 +01:00
.mailmap Add Simon to mailmap 2023-01-11 15:26:31 +01:00
.sdkmanrc Updated Java 17 version in sdkmanrc 2023-01-19 10:03:18 +01:00
CODE_OF_CONDUCT.adoc
CONTRIBUTING.md Create framework-docs module 2022-11-02 10:59:12 +01:00
LICENSE.txt
README.md Update build badge and link 2023-03-01 15:51:07 +01:00
SECURITY.md Mention JAR signing key in SECURITY.md 2023-03-17 22:32:33 +01:00
build.gradle Upgrade dependencies 2023-04-02 19:20:49 +02:00
gradle.properties Next development version (v6.0.8-SNAPSHOT) 2023-03-20 09:53:24 +00:00
gradlew Upgrade to Gradle 8 2023-04-01 18:36:28 +02:00
gradlew.bat Upgrade Gradle wrapper 2022-11-25 23:12:08 +01:00
import-into-eclipse.md
import-into-idea.md
settings.gradle Upgrade dependencies 2023-04-02 19:20:49 +02:00
update_copyright_headers.sh Use correct Kotlin file extension in update_copyright_headers.sh 2023-02-19 13:41:36 +01:00

README.md

Spring Framework Build Status Revved up by Gradle Enterprise

This is the home of the Spring Framework: the foundation for all Spring projects. Collectively the Spring Framework and the family of Spring projects are often referred to simply as "Spring".

Spring provides everything required beyond the Java programming language for creating enterprise applications for a wide range of scenarios and architectures. Please read the Overview section as reference for a more complete introduction.

Code of Conduct

This project is governed by the Spring Code of Conduct. By participating, you are expected to uphold this code of conduct. Please report unacceptable behavior to spring-code-of-conduct@pivotal.io.

Access to Binaries

For access to artifacts or a distribution zip, see the Spring Framework Artifacts wiki page.

Documentation

The Spring Framework maintains reference documentation (published and source), GitHub wiki pages, and an API reference. There are also guides and tutorials across Spring projects.

Micro-Benchmarks

See the Micro-Benchmarks wiki page.

Build from Source

See the Build from Source wiki page and the CONTRIBUTING.md file.

Continuous Integration Builds

Information regarding CI builds can be found in the Spring Framework Concourse pipeline documentation.

Stay in Touch

Follow @SpringCentral, @SpringFramework, and its team members on Twitter. In-depth articles can be found at The Spring Blog, and releases are announced via our news feed.

License

The Spring Framework is released under version 2.0 of the Apache License.