org.springframework:spring-test breaking changes
Updated December 4, 2026
On this page
Latest version 7.1.0. Source repository
Packages on Maven Central run on Java. Java end of life dates.
org.springframework:spring-test 7.0.0 breaking changes
- Removed
Use standard Servlet support once a Servlet 6.1 compatible Undertow is released. github.com - Removed
OkHttp3 support removed in org.springframework:spring-test 7.0.0 github.com - Removed
Theme support removed in org.springframework:spring-test 7.0.0 github.com - Removed
Switch to org.webjars:webjars-locator-lite. github.com - Removed
AbstractHandlerMapping.trailingSlashMatch
Removed trailingSlashMatch path mapping option in org.springframework:spring-test 7.0.0 github.com - Removed
favorPathExtension
Removed favorPathExtension content negotiation option in org.springframework:spring-test 7.0.0 github.com - Removed
HttpComponentsClientHttpRequestFactory.setConnectTimeout
setConnectTimeout methods removed in org.springframework:spring-test 7.0.0 github.com - Removed
ignoreUnknownPathExtensions
Removed ignoreUnknownPathExtensions content negotiation option in org.springframework:spring-test 7.0.0 github.com - Removed
javax.annotation
Migrate to the jakarta.annotation equivalents. github.com - Removed
javax.inject
Migrate to the jakarta.inject equivalents. github.com - Removed
ListenableFuture
Use CompletableFuture instead. github.com - Removed
org.springframework.mock.web.MockPageContext.getExpressionEvaluator
MockPageContext.getExpressionEvaluator was removed in org.springframework:spring-test 7.0.0 central.sonatype.com - Removed
org.springframework.mock.web.MockPageContext.getVariableResolver
MockPageContext.getVariableResolver was removed in org.springframework:spring-test 7.0.0 central.sonatype.com - Removed
org.springframework.mock.web.reactive.function.server.MockServerRequest.methodName
MockServerRequest.methodName was removed in org.springframework:spring-test 7.0.0 central.sonatype.com - Removed
org.springframework.test.web.reactive.server.CookieAssertions.<init>
CookieAssertions.<init> was removed in org.springframework:spring-test 7.0.0 central.sonatype.com - Removed
org.springframework.test.web.reactive.server.ExchangeResult.getRawStatusCode
ExchangeResult.getRawStatusCode was removed in org.springframework:spring-test 7.0.0 central.sonatype.com - Removed
org.springframework.test.web.reactive.server.WebTestClient.RequestBodySpec.syncBody
org.springframework.test.web.reactive.server.WebTestClient.RequestBodySpec.syncBody was removed in org.springframework:spring-test 7.0.0 central.sonatype.com - Removed
org.springframework.test.web.servlet.client.MockMvcWebTestClient.ControllerSpec.useTrailingSlashPatternMatch
org.springframework.test.web.servlet.client.MockMvcWebTestClient.ControllerSpec.useTrailingSlashPatternMatch was removed in org.springframework:spring-test 7.0.0 central.sonatype.com - Removed
org.springframework.test.web.servlet.result.StatusResultMatchers.isCheckpoint
StatusResultMatchers.isCheckpoint was removed in org.springframework:spring-test 7.0.0 central.sonatype.com - Removed
org.springframework.test.web.servlet.result.StatusResultMatchers.isDestinationLocked
StatusResultMatchers.isDestinationLocked was removed in org.springframework:spring-test 7.0.0 central.sonatype.com - Removed
org.springframework.test.web.servlet.result.StatusResultMatchers.isInsufficientSpaceOnResource
StatusResultMatchers.isInsufficientSpaceOnResource was removed in org.springframework:spring-test 7.0.0 central.sonatype.com - Removed
org.springframework.test.web.servlet.result.StatusResultMatchers.isMethodFailure
StatusResultMatchers.isMethodFailure was removed in org.springframework:spring-test 7.0.0 central.sonatype.com - Removed
org.springframework.test.web.servlet.result.StatusResultMatchers.isMovedTemporarily
StatusResultMatchers.isMovedTemporarily was removed in org.springframework:spring-test 7.0.0 central.sonatype.com - Removed
org.springframework.test.web.servlet.result.StatusResultMatchers.isRequestEntityTooLarge
StatusResultMatchers.isRequestEntityTooLarge was removed in org.springframework:spring-test 7.0.0 central.sonatype.com - Removed
org.springframework.test.web.servlet.result.StatusResultMatchers.isRequestUriTooLong
StatusResultMatchers.isRequestUriTooLong was removed in org.springframework:spring-test 7.0.0 central.sonatype.com - Removed
org.springframework.test.web.servlet.result.StatusResultMatchers.isUseProxy
StatusResultMatchers.isUseProxy was removed in org.springframework:spring-test 7.0.0 central.sonatype.com - Removed
org.springframework.test.web.servlet.result.StatusResultMatchersDsl.isCheckpoint
Use isEarlyHints() instead. central.sonatype.com - Removed
org.springframework.test.web.servlet.ResultMatcher.matchAll
ResultMatcher.matchAll was removed in org.springframework:spring-test 7.0.0 central.sonatype.com - Removed
org.springframework.test.web.servlet.setup.StandaloneMockMvcBuilder.setUseSuffixPatternMatch
StandaloneMockMvcBuilder.setUseSuffixPatternMatch was removed in org.springframework:spring-test 7.0.0 central.sonatype.com - Removed
org.springframework.test.web.servlet.setup.StandaloneMockMvcBuilder.setUseTrailingSlashPatternMatch
StandaloneMockMvcBuilder.setUseTrailingSlashPatternMatch was removed in org.springframework:spring-test 7.0.0 central.sonatype.com - Removed
PathPatternParser.matchOptionalTrailingSeparator
Removed matchOptionalTrailingSeparator option in org.springframework:spring-test 7.0.0 github.com - Removed
registeredSuffixPatternMatch
Removed registeredSuffixPatternMatch path mapping option in org.springframework:spring-test 7.0.0 github.com - Removed
spring-jcl
Use Apache Commons Logging 1.3.0 directly instead of spring-jcl. github.com - Removed
suffixPatternMatch
Removed suffixPatternMatch path mapping option in org.springframework:spring-test 7.0.0 github.com - Renamed
@Retryable.maxAttempts
The maxAttempts attribute of @Retryable is renamed to maxRetries. Update code to use the new name. github.com - Renamed
MemberCategory.DECLARED_FIELDS
MemberCategory.DECLARED_FIELDS renamed in org.springframework:spring-test 7.0.0 github.com - Renamed
MemberCategory.PUBLIC_FIELDS
MemberCategory.PUBLIC_FIELDS renamed in org.springframework:spring-test 7.0.0 github.com - Renamed
org.springframework.orm.hibernate5
Hibernate native support package moved in org.springframework:spring-test 7.0.0 github.com - Renamed
org.springframework.test.http.HttpHeadersAssert.doesNotContainsHeaders
Use HttpHeadersAssert.containsOnlyHeaders instead. central.sonatype.com - Renamed
RequestContext.jstPresent
RequestContext jstPresent field renamed in org.springframework:spring-test 7.0.0 github.com - Renamed
RetryPolicy.maxAttempts
The maxAttempts property of RetryPolicy is renamed to maxRetries. Update code to use the new name. github.com - Behavior changed
Wildcards now match glob patterns; use /files/**/*.ext to match nested paths and remove excludes. github.com - Behavior changed
Kotlin projects may need code changes for altered nullability. github.com - Behavior changed
HttpHeaders
Several map-like methods were removed; prefer other HttpHeaders methods. github.com - Behavior changed
MethodParameter.isOptional
MethodParameter#isOptional checks only local annotations in org.springframework:spring-test 7.0.0 github.com - Behavior changed
MutablePersistenceUnitInfo
Use SpringPersistenceUnitInfo for custom bootstrapping. github.com - Behavior changed
ReactorClientHttpRequestFactory
The Reactor client opts in to the https.proxyHost and https.proxyPort system properties for proxy configuration by default. github.com - Behavior changed
SimpleEvaluationContext
Call withCompilationSupported() on the builder to opt in to compilation. github.com - Behavior changed
SpringExtension
Nested test hierarchies may fail; annotate the top-level class with @SpringExtensionConfig if needed. github.com - Behavior changed
TestExecutionListener.prepareTestInstance
Look up the test class via testContext.getTestInstance().getClass() instead of getTestClass(). github.com
And 23 more in this version. Sign up to see every change
org.springframework:spring-test 7.0.0-RC3 breaking changes
- Removed
BeanRegistrarDsl
BeanRegistrarDsl no longer supports callable references. Code using them must change. github.com - Behavior changed
RestTestClient
RestTestClient no longer depends on Hamcrest. Code relying on Hamcrest through it must add that dependency itself. github.com - Behavior changed
SpringExtension
SpringExtension now uses a test-method scoped ExtensionContext. Code depending on the previous scope may behave differently. github.com
org.springframework:spring-test 7.0.0-RC1 breaking changes
- Behavior changed
Private handler methods on CGLIB proxied controllers are now rejected. github.com
org.springframework:spring-test 7.0.0-M9 breaking changes
- Removed
Undertow is no longer supported as a server because it is not Servlet 6.1 compatible. github.com - Removed
HttpServiceClient
The HttpServiceClient annotation is no longer supported. github.com - Behavior changed
ContextCache
Evicted contexts are closed before a new context is loaded. github.com - Default changed
JpaTransactionManager.nestedTransactionAllowed
nestedTransactionAllowed now has a different default value. github.com - Signature changed
Jackson 3 constructors no longer accept other mapper types for JSON. github.com
org.springframework:spring-test 7.0.0-M8 breaking changes
- Renamed
ApiVersionConfigurer.useRequestParam
Replace calls to useRequestParam with useQueryParam. github.com
org.springframework:spring-test 7.0.0-M7 breaking changes
- Removed
RetryPolicy
Code that sets maxDuration or maxElapsedTime on RetryPolicy must use other limits. github.com - Renamed
org.springframework.orm.hibernate5
Code importing the old package must switch to the new package name. github.com - Behavior changed
Contract
Contract annotations must now state constraints explicitly. github.com - Behavior changed
RetryPolicy
Built-in RetryPolicy implementations can no longer be subclassed. github.com - Default changed
InstanceFilter.matchIfEmpty
matchIfEmpty now defaults to true, so empty filters match more inputs. github.com
Older versions
11 older versions, each with its first changes. Sign up to see every change
Show 11 older versions
org.springframework:spring-test 7.0.0-M6 breaking changes
- Signature changed
org.springframework.mock.env.MockEnvironment.setProperty
The (String, String) variants of setProperty() were removed from MockEnvironment. Code that calls them must be changed. central.sonatype.com - Signature changed
org.springframework.mock.env.MockEnvironment.withProperty
The (String, String) variants of withProperty() were removed from MockEnvironment. Code that calls them must be changed. central.sonatype.com
org.springframework:spring-test 7.0.0-M4 breaking changes
- Configuration changed
The framework now requires Servlet 6.1 and WebSocket 2.2 baselines. github.com
org.springframework:spring-test 7.0.0-M3 breaking changes
- Behavior changed
MockHttpServletResponse
MockHttpServletResponse behavior was revised to follow Servlet API clarifications. github.com
org.springframework:spring-test 7.0.0-M1 breaking changes
- Behavior changed
The Servlet mock classes now follow the Servlet 6.1 API. github.com
org.springframework:spring-test 6.0.0 breaking changes
- Removed
org.springframework.mock.http.client.MockAsyncClientHttpRequest
org.springframework.mock.http.client.MockAsyncClientHttpRequest was removed in org.springframework:spring-test 6.0.0 central.sonatype.com - Removed
org.springframework.mock.http.client.MockClientHttpRequest.getMethodValue
MockClientHttpRequest.getMethodValue was removed in org.springframework:spring-test 6.0.0 central.sonatype.com
And 167 more in this version.
org.springframework:spring-test 6.0.0-RC1 breaking changes
- Behavior changed
Default TestExecutionListeners are now enabled in the JUnit 4 and TestNG base test classes, so existing tests there may run additional listener behavior. github.com - Signature changed
TestRuntimeHintsRegistrar
The TestRuntimeHintsRegistrar API was simplified, so code that calls or implements it may need to be updated. github.com
org.springframework:spring-test 6.0.0-M6 breaking changes
- Removed
The default CacheAwareContextLoaderDelegate can no longer be set via a system property. Configure it another way. github.com - Removed
org.springframework.test.context.support.GenericPropertiesContextLoader
GenericPropertiesContextLoader is removed from the TestContext framework. Switch to a supported context loader. central.sonatype.com
org.springframework:spring-test 6.0.0-M4 breaking changes
- Removed
MergedAnnotations.SearchStrategy.TYPE_HIERARCHY_AND_ENCLOSING_CLASSES
Removes the TYPE_HIERARCHY_AND_ENCLOSING_CLASSES search strategy in org.springframework:spring-test 6.0.0-M4 github.com - Removed
org.springframework.core.NestedIOException
Removes the obsolete NestedIOException class in org.springframework:spring-test 6.0.0-M4 github.com
And 2 more in this version.
org.springframework:spring-test 6.0.0-M3 breaking changes
- Removed
SocketUtils
Removes the deprecated SocketUtils class in org.springframework:spring-test 6.0.0-M3 github.com
org.springframework:spring-test 6.0.0-M2 breaking changes
- Behavior changed
WebSocketConfigurationSupport
WebSocketConfigurationSupport no longer defines a TaskScheduler bean in org.springframework:spring-test 6.0.0-M2 github.com
org.springframework:spring-test 6.0.0-M1 breaking changes
- Removed
Removes support for the deprecated Java SecurityManager in org.springframework:spring-test 6.0.0-M1 github.com - Renamed
Moves to Jakarta EE 9 jakarta.* namespace in org.springframework:spring-test 6.0.0-M1 github.com
And 3 more in this version.
Related packages
- org.springframework:spring-aop
- org.springframework:spring-aspects
- org.springframework:spring-beans
- org.springframework:spring-context
- org.springframework:spring-context-support
- org.springframework:spring-core
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.