org.springframework.boot:spring-boot-test breaking changes
Updated December 4, 2026
On this page
Latest version 4.2.0, released November 23, 2026. Source repository
Its 3.0.0-M1 release requires Java 17 or later. Java end of life dates.
- From 3.0.0 to 4.0.0: 38 breaking changes in 4 versions.
- From 2.0.0.RELEASE to 4.0.0: 85 breaking changes in 10 versions.
org.springframework.boot:spring-boot-test 4.0.0 breaking changes
- Removed
org.springframework.boot.test.mock.mockito.MockBean
org.springframework.boot.test.mock.mockito.MockBean was removed in org.springframework.boot:spring-boot-test 4.0.0 central.sonatype.com - Removed
org.springframework.boot.test.mock.mockito.MockBeans
org.springframework.boot.test.mock.mockito.MockBeans was removed in org.springframework.boot:spring-boot-test 4.0.0 central.sonatype.com - Removed
org.springframework.boot.test.mock.mockito.MockitoPostProcessor
org.springframework.boot.test.mock.mockito.MockitoPostProcessor was removed in org.springframework.boot:spring-boot-test 4.0.0 central.sonatype.com - Removed
org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener
org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener was removed in org.springframework.boot:spring-boot-test 4.0.0 central.sonatype.com - Removed
org.springframework.boot.test.mock.mockito.MockReset
org.springframework.boot.test.mock.mockito.MockReset was removed in org.springframework.boot:spring-boot-test 4.0.0 central.sonatype.com - Removed
org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener
org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener was removed in org.springframework.boot:spring-boot-test 4.0.0 central.sonatype.com - Removed
org.springframework.boot.test.mock.mockito.SpringBootMockResolver
org.springframework.boot.test.mock.mockito.SpringBootMockResolver was removed in org.springframework.boot:spring-boot-test 4.0.0 central.sonatype.com - Removed
org.springframework.boot.test.mock.mockito.SpyBean
org.springframework.boot.test.mock.mockito.SpyBean was removed in org.springframework.boot:spring-boot-test 4.0.0 central.sonatype.com - Removed
org.springframework.boot.test.mock.mockito.SpyBeans
org.springframework.boot.test.mock.mockito.SpyBeans was removed in org.springframework.boot:spring-boot-test 4.0.0 central.sonatype.com - Removed
org.springframework.boot.test.rsocket.server.LocalRSocketServerPort
org.springframework.boot.test.rsocket.server.LocalRSocketServerPort was removed in org.springframework.boot:spring-boot-test 4.0.0 central.sonatype.com - Removed
org.springframework.boot.test.web.client.LocalHostUriTemplateHandler
org.springframework.boot.test.web.client.LocalHostUriTemplateHandler was removed in org.springframework.boot:spring-boot-test 4.0.0 central.sonatype.com - Removed
org.springframework.boot.test.web.client.MockServerRestClientCustomizer
org.springframework.boot.test.web.client.MockServerRestClientCustomizer was removed in org.springframework.boot:spring-boot-test 4.0.0 central.sonatype.com - Removed
org.springframework.boot.test.web.client.MockServerRestTemplateCustomizer
org.springframework.boot.test.web.client.MockServerRestTemplateCustomizer was removed in org.springframework.boot:spring-boot-test 4.0.0 central.sonatype.com - Removed
org.springframework.boot.test.web.client.RootUriRequestExpectationManager
org.springframework.boot.test.web.client.RootUriRequestExpectationManager was removed in org.springframework.boot:spring-boot-test 4.0.0 central.sonatype.com - Removed
org.springframework.boot.test.web.client.TestRestTemplate
org.springframework.boot.test.web.client.TestRestTemplate was removed in org.springframework.boot:spring-boot-test 4.0.0 central.sonatype.com - Removed
org.springframework.boot.test.web.client.TestRestTemplateExtensionsKt
org.springframework.boot.test.web.client.TestRestTemplateExtensionsKt was removed in org.springframework.boot:spring-boot-test 4.0.0 central.sonatype.com - Removed
org.springframework.boot.test.web.htmlunit.webdriver.LocalHostWebConnectionHtmlUnitDriver
org.springframework.boot.test.web.htmlunit.webdriver.LocalHostWebConnectionHtmlUnitDriver was removed in org.springframework.boot:spring-boot-test 4.0.0 central.sonatype.com - Removed
org.springframework.boot.test.web.reactive.server.WebTestClientBuilderCustomizer
org.springframework.boot.test.web.reactive.server.WebTestClientBuilderCustomizer was removed in org.springframework.boot:spring-boot-test 4.0.0 central.sonatype.com - Renamed
org.springframework.boot.test.web.htmlunit.LocalHostWebClient
Use org.springframework.boot.test.web.htmlunit.UriBuilderFactoryWebClient instead. central.sonatype.com - Signature changed
org.springframework.boot.test.context.assertj.AssertableReactiveWebApplicationContext
Was interface AssertableReactiveWebApplicationContext extends org.springframework.boot.test.context.assertj.ApplicationContextAssertProvider<org.springframework.boot.web.reactive.context.ConfigurableReactiveWebApplicationContext>... central.sonatype.com - Signature changed
org.springframework.boot.test.context.assertj.AssertableReactiveWebApplicationContext.get
Was static org.springframework.boot.test.context.assertj.AssertableReactiveWebApplicationContext get(java.util.function.Supplier<? extends org.springframework.boot.web.reactive.context.ConfigurableReactiveWebApplicationContext>) static... central.sonatype.com - Signature changed
org.springframework.boot.test.context.runner.AbstractApplicationContextRunner.<init>
The signature of AbstractApplicationContextRunner.<init> changed in org.springframework.boot:spring-boot-test 4.0.0 central.sonatype.com - Signature changed
org.springframework.boot.test.context.runner.ReactiveWebApplicationContextRunner
Was final class ReactiveWebApplicationContextRunner extends org.springframework.boot.test.context.runner.AbstractApplicationContextRunner<org.springframework.boot.test.context.runner.ReactiveWebApplicationContextRunner... central.sonatype.com - Signature changed
org.springframework.boot.test.context.runner.ReactiveWebApplicationContextRunner.<init>
Was ReactiveWebApplicationContextRunner(java.util.function.Supplier<org.springframework.boot.web.reactive.context.ConfigurableReactiveWebApplicationContext>)... central.sonatype.com - Signature changed
org.springframework.boot.test.json.JacksonTester.<init>
Was JacksonTester(Class<?>, org.springframework.core.ResolvableType, com.fasterxml.jackson.databind.ObjectMapper) JacksonTester(Class<?>, org.springframework.core.ResolvableType, com.fasterxml.jackson.databind.ObjectMapper, Class<?>)... central.sonatype.com - Signature changed
org.springframework.boot.test.json.JacksonTester.initFields
Was static void initFields(Object, com.fasterxml.jackson.databind.ObjectMapper) static void initFields(Object, org.springframework.beans.factory.ObjectFactory<com.fasterxml.jackson.databind.ObjectMapper>); now static void... central.sonatype.com - Signature changed
org.springframework.boot.test.web.htmlunit.LocalHostWebClient.<init>
Was LocalHostWebClient(org.springframework.core.env.Environment); now UriBuilderFactoryWebClient(org.springframework.web.util.UriBuilderFactory). central.sonatype.com
org.springframework.boot:spring-boot-test 4.0.0-RC2 breaking changes
- Renamed
management.opentelemetry.logging.export
The management.opentelemetry.logging.export properties were renamed. Update configuration to the new property names given in the release notes. github.com - Renamed
management.zipkin.tracing
The management.zipkin.tracing properties were renamed to management.tracing.export.zipkin. Update configuration files to use the new names. github.com - Renamed
OnlyOnceLoggingDenyMeterFilter
The OnlyOnceLoggingDenyMeterFilter class was renamed in this release. Code referencing the old name must be updated. github.com - Configuration changed
management.logging.export.{name}.enabled
The condition enabling logging exporters is now backed by management.logging.export.{name}.enabled. Update any configuration that relied on the previous property. github.com
org.springframework.boot:spring-boot-test 4.0.0-RC1 breaking changes
- Renamed
The spring-boot-test library was split into modules, so code that depends on its packages may need updated imports or dependencies. github.com - Renamed
The spring-boot-test-autoconfigure library was split into modules, so code that depends on its packages may need updated imports or dependencies. github.com
org.springframework.boot:spring-boot-test 4.0.0-M1 breaking changes
- Removed
APIs that were deprecated for removal in 4.0 or earlier have been removed. Migrate away from them before upgrading. github.com - Removed
Support for Wavefront has been dropped, so code relying on it no longer works. Move to another supported metrics backend. github.com - Renamed
ClientHttpRequestFactorySettings.Redirects
ClientHttpRequestFactorySettings.Redirects was replaced with HttpRedirects. Update code to use the new type. github.com - Renamed
org.springframework.boot.autoconfigure.thread
The org.springframework.boot.autoconfigure.thread package moved to org.springframework.boot.thread. Update imports to the new package. github.com - Configuration changed
server.servlet.encoding
The server.servlet.encoding properties were reworked to clarify when they apply. Review your encoding configuration. github.com
org.springframework.boot:spring-boot-test 3.0.0 breaking changes
- Removed
org.springframework.boot.test.context.runner.AbstractApplicationContextRunner.newInstance
AbstractApplicationContextRunner.newInstance was removed in org.springframework.boot:spring-boot-test 3.0.0 central.sonatype.com - Removed
org.springframework.boot.test.context.runner.ApplicationContextRunner.newInstance
ApplicationContextRunner.newInstance was removed in org.springframework.boot:spring-boot-test 3.0.0 central.sonatype.com - Removed
org.springframework.boot.test.context.SpringBootTestContextBootstrapper.getDefaultTestExecutionListenerClasses
SpringBootTestContextBootstrapper.getDefaultTestExecutionListenerClasses was removed in org.springframework.boot:spring-boot-test 3.0.0 central.sonatype.com - Removed
org.springframework.boot.test.web.client.TestRestTemplate.CustomHttpComponentsClientHttpRequestFactory.getRequestConfig
org.springframework.boot.test.web.client.TestRestTemplate.CustomHttpComponentsClientHttpRequestFactory.getRequestConfig was removed in org.springframework.boot:spring-boot-test 3.0.0 central.sonatype.com - Behavior changed
Timestamps in Actuator responses are no longer formatted as ISO-8601, so code that parses them must be checked and updated. github.com - Signature changed
org.springframework.boot.test.context.DefaultTestExecutionListenersPostProcessor.postProcessDefaultTestExecutionListeners
Was java.util.Set<Class<? extends org.springframework.test.context.TestExecutionListener>> postProcessDefaultTestExecutionListeners(java.util.Set<Class<? extends org.springframework.test.context.TestExecutionListener>>); now... central.sonatype.com - Signature changed
org.springframework.boot.test.context.runner.AbstractApplicationContextRunner.<init>
The signature of AbstractApplicationContextRunner.<init> changed in org.springframework.boot:spring-boot-test 3.0.0 central.sonatype.com - Signature changed
org.springframework.boot.test.context.SpringBootContextLoader
Was class SpringBootContextLoader extends org.springframework.test.context.support.AbstractContextLoader; now class SpringBootContextLoader extends org.springframework.test.context.support.AbstractContextLoader implements... central.sonatype.com - Signature changed
org.springframework.boot.test.context.SpringBootContextLoader.loadContext
The signature of SpringBootContextLoader.loadContext changed in org.springframework.boot:spring-boot-test 3.0.0 central.sonatype.com - Signature changed
org.springframework.boot.test.json.JsonbTester.<init>
Was JsonbTester(Class<?>, org.springframework.core.ResolvableType, javax.json.bind.Jsonb) protected JsonbTester(javax.json.bind.Jsonb); now JsonbTester(Class<?>, org.springframework.core.ResolvableType, jakarta.json.bind.Jsonb) protected... central.sonatype.com
And 3 more in this version. Sign up to see every change
org.springframework.boot:spring-boot-test 3.0.0-M5 breaking changes
- Removed
The CLI commands grab, install, jar, run, uninstall and war were removed, so scripts that use them will stop working. github.com - Removed
AnsiColors
AnsiColors was removed in this release, so code that references it will no longer compile or run and must stop using it. github.com - Removed
EventPublishingRunListener
EventPublishingRunListener is now package private, so code outside its package that uses it will break. github.com - Default changed
The default JMX endpoint exposure now matches the default web endpoint exposure, so JMX endpoints may be exposed where they were not before. github.com - Signature changed
HeapDumper
The HeapDumper strategy interface was reworked to be less HotSpot-specific, so implementations and callers of it may need updating. github.com
Older versions
5 older versions, each with its first changes. Sign up to see every change
Show 5 older versions
org.springframework.boot:spring-boot-test 3.0.0-M4 breaking changes
- Behavior changed
ApplicationContextRunner
ApplicationContextRunner now applies initializers and bean registrations before registering classes. Tests that depend on the previous order may need updating. github.com
org.springframework.boot:spring-boot-test 3.0.0-M3 breaking changes
- Removed
The ability to run an application in the Maven process is removed. github.com - Removed
Solr auto-configuration is removed until it is compatible with Jetty 11. github.com
And 6 more in this version.
org.springframework.boot:spring-boot-test 3.0.0-M2 breaking changes
- Removed
Image banners are no longer supported; use a text banner instead. github.com - Removed
JavaVersion
Enum values for Java versions less than 17 are removed, so code referencing them will no longer compile. github.com
And 2 more in this version.
org.springframework.boot:spring-boot-test 3.0.0-M1 breaking changes
- Removed
H2 Console support is removed in this release. github.com - Removed
The package now requires Java 17 or later, so Java 8 and 11 are no longer supported. github.com
And 14 more in this version.
org.springframework.boot:spring-boot-test 2.0.0.RELEASE breaking changes
- Signature changed
org.springframework.boot.test.json.BasicJsonTester.initialize
Was protected final void initialize(Class<?>, java.nio.charset.Charset, org.springframework.core.ResolvableType) protected final void initialize(Class<?>, org.springframework.core.ResolvableType); now protected final void... central.sonatype.com - Signature changed
org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener.getOrder
Was int getOrder(); now final int getOrder(). central.sonatype.com
And 1 more in this version.
Related packages
- org.springframework.boot:spring-boot
- org.springframework.boot:spring-boot-starter
- org.springframework.boot:spring-boot-starter-data-jpa
- org.springframework.boot:spring-boot-starter-data-redis
- org.springframework.boot:spring-boot-starter-cache
- org.springframework.boot:spring-boot-starter-hateoas
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.