Skip to content

Commit 46150ba

Browse files
committed
Merge branch '3.3.x'
Closes gh-41858
2 parents cc3e62d + 2a84fe5 commit 46150ba

File tree

98 files changed

+141
-44
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+141
-44
lines changed

buildSrc/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
javaFormatVersion=0.0.41
1+
javaFormatVersion=0.0.43

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/prometheus/PrometheusProperties.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ public class PrometheusProperties {
5454

5555
/**
5656
* Histogram type for backing DistributionSummary and Timer.
57+
* @deprecated since 3.3.0 for removal in 3.5.0
5758
*/
5859
@Deprecated(since = "3.3.0", forRemoval = true)
5960
private HistogramFlavor histogramFlavor = HistogramFlavor.Prometheus;
@@ -230,7 +231,7 @@ public void setShutdownOperation(ShutdownOperation shutdownOperation) {
230231
@Deprecated(since = "3.3.0", forRemoval = true)
231232
public enum HistogramFlavor {
232233

233-
Prometheus, VictoriaMetrics;
234+
Prometheus, VictoriaMetrics
234235

235236
}
236237

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/tracing/zipkin/ZipkinRestTemplateSender.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
*
3232
* @author Moritz Halbritter
3333
* @author Stefan Bratanov
34+
* @deprecated since 3.3.0 for removal in 3.5.0 in favor of {@link ZipkinHttpClientSender}
3435
*/
3536
@Deprecated(since = "3.3.0", forRemoval = true)
3637
class ZipkinRestTemplateSender extends HttpSender {

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/tracing/zipkin/ZipkinWebClientSender.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
*
3131
* @author Stefan Bratanov
3232
* @author Moritz Halbritter
33+
* @deprecated since 3.3.0 for removal in 3.5.0 in favor of {@link ZipkinHttpClientSender}
3334
*/
3435
@Deprecated(since = "3.3.0", forRemoval = true)
3536
class ZipkinWebClientSender extends HttpSender {

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/logging/opentelemetry/otlp/OtlpLoggingAutoConfigurationIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
*
4646
* @author Toshiaki Maki
4747
*/
48-
public class OtlpLoggingAutoConfigurationIntegrationTests {
48+
class OtlpLoggingAutoConfigurationIntegrationTests {
4949

5050
private final ApplicationContextRunner contextRunner = new ApplicationContextRunner()
5151
.withPropertyValues("spring.application.name=otlp-logs-test",

spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/web/jersey/JerseyWebEndpointIntegrationTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@
6262
* @author Andy Wilkinson
6363
* @see JerseyEndpointResourceFactory
6464
*/
65-
public class JerseyWebEndpointIntegrationTests
65+
class JerseyWebEndpointIntegrationTests
6666
extends AbstractWebEndpointIntegrationTests<AnnotationConfigServletWebServerApplicationContext> {
6767

68-
public JerseyWebEndpointIntegrationTests() {
68+
JerseyWebEndpointIntegrationTests() {
6969
super(JerseyWebEndpointIntegrationTests::createApplicationContext,
7070
JerseyWebEndpointIntegrationTests::applyAuthenticatedConfiguration);
7171
}

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,7 @@ public static class Tomcat {
491491

492492
/**
493493
* Whether to reject requests with illegal header names or values.
494+
* @deprecated since 2.7.12 for removal in 3.3.0
494495
*/
495496
@Deprecated(since = "2.7.12", forRemoval = true) // Remove in 3.3
496497
private boolean rejectIllegalHeader = true;

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jooq/JooqExceptionTranslatorTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
* Tests for {@link JooqExceptionTranslator}
4040
*
4141
* @author Andy Wilkinson
42+
* @deprecated since 3.3.0 for removal in 3.5.0
4243
*/
4344
@Deprecated(since = "3.3.0")
4445
@SuppressWarnings("removal")

spring-boot-project/spring-boot-test-autoconfigure/src/dockerTest/java/org/springframework/boot/test/autoconfigure/data/ldap/DataLdapTestDockerTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
*/
4343
@DataLdapTest
4444
@Testcontainers(disabledWithoutDocker = true)
45-
public class DataLdapTestDockerTests {
45+
class DataLdapTestDockerTests {
4646

4747
@Container
4848
@ServiceConnection

spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/mock/mockito/Definition.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
*
2424
* @author Phillip Webb
2525
* @see DefinitionsParser
26+
* @deprecated since 3.4.0 for removal in 3.6.0
2627
*/
2728
@SuppressWarnings("removal")
2829
@Deprecated(since = "3.4.0", forRemoval = true)

spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/mock/mockito/DefinitionsParser.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
*
4242
* @author Phillip Webb
4343
* @author Stephane Nicoll
44+
* @deprecated since 3.4.0 for removal in 3.6.0
4445
*/
4546
@SuppressWarnings("removal")
4647
@Deprecated(since = "3.4.0", forRemoval = true)

spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/mock/mockito/MockDefinition.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
* A complete definition that can be used to create a Mockito mock.
3838
*
3939
* @author Phillip Webb
40+
* @deprecated since 3.4.0 for removal in 3.6.0
4041
*/
4142
@SuppressWarnings("removal")
4243
@Deprecated(since = "3.4.0", forRemoval = true)

spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/mock/mockito/MockitoContextCustomizer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
* A {@link ContextCustomizer} to add Mockito support.
2929
*
3030
* @author Phillip Webb
31+
* @deprecated since 3.4.0 for removal in 3.6.0
3132
*/
3233
@SuppressWarnings("removal")
3334
@Deprecated(since = "3.4.0", forRemoval = true)

spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/mock/mockito/MockitoContextCustomizerFactory.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
* A {@link ContextCustomizerFactory} to add Mockito support.
2828
*
2929
* @author Phillip Webb
30+
* @deprecated since 3.4.0 for removal in 3.6.0
3031
*/
3132
@SuppressWarnings("removal")
3233
@Deprecated(since = "3.4.0", forRemoval = true)

spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/mock/mockito/QualifierDefinition.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
* @author Phillip Webb
3535
* @author Stephane Nicoll
3636
* @see Definition
37+
* @deprecated since 3.4.0 for removal in 3.6.0
3738
*/
3839
@SuppressWarnings("removal")
3940
@Deprecated(since = "3.4.0", forRemoval = true)

spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/mock/mockito/SpyDefinition.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
* A complete definition that can be used to create a Mockito spy.
3838
*
3939
* @author Phillip Webb
40+
* @deprecated since 3.4.0 for removal in 3.6.0
4041
*/
4142
@SuppressWarnings("removal")
4243
@Deprecated(since = "3.4.0", forRemoval = true)

spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/mock/mockito/AbstractMockBeanOnGenericExtensionTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
* Concrete implementation of {@link AbstractMockBeanOnGenericTests}.
2121
*
2222
* @author Madhura Bhave
23+
* @deprecated since 3.4.0 for removal in 3.6.0
2324
*/
2425
@SuppressWarnings("removal")
2526
@Deprecated(since = "3.4.0", forRemoval = true)

spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/mock/mockito/AbstractMockBeanOnGenericTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
* @param <T> type of thing
3232
* @param <U> type of something
3333
* @author Madhura Bhave
34+
* @deprecated since 3.4.0 for removal in 3.6.0
3435
*/
3536
@SuppressWarnings("removal")
3637
@Deprecated(since = "3.4.0", forRemoval = true)

spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/mock/mockito/DefinitionsParserTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
* Tests for {@link DefinitionsParser}.
3737
*
3838
* @author Phillip Webb
39+
* @deprecated since 3.4.0 for removal in 3.6.0
3940
*/
4041
@SuppressWarnings("removal")
4142
@Deprecated(since = "3.4.0", forRemoval = true)

spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/mock/mockito/MockBeanContextCachingTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
* Tests for application context caching when using {@link MockBean @MockBean}.
4343
*
4444
* @author Andy Wilkinson
45+
* @deprecated since 3.4.0 for removal in 3.6.0
4546
*/
4647
@SuppressWarnings("removal")
4748
@Deprecated(since = "3.4.0", forRemoval = true)

spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/mock/mockito/MockBeanForBeanFactoryIntegrationTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
* Test {@link MockBean @MockBean} for a factory bean.
3535
*
3636
* @author Phillip Webb
37+
* @deprecated since 3.4.0 for removal in 3.6.0
3738
*/
3839
@SuppressWarnings("removal")
3940
@Deprecated(since = "3.4.0", forRemoval = true)

spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/mock/mockito/MockBeanOnConfigurationClassForExistingBeanIntegrationTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
* existing beans.
3636
*
3737
* @author Phillip Webb
38+
* @deprecated since 3.4.0 for removal in 3.6.0
3839
*/
3940
@SuppressWarnings("removal")
4041
@Deprecated(since = "3.4.0", forRemoval = true)

spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/mock/mockito/MockBeanOnConfigurationClassForNewBeanIntegrationTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
* instances.
3535
*
3636
* @author Phillip Webb
37+
* @deprecated since 3.4.0 for removal in 3.6.0
3738
*/
3839
@SuppressWarnings("removal")
3940
@ExtendWith(SpringExtension.class)

spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/mock/mockito/MockBeanOnConfigurationFieldForExistingBeanIntegrationTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
* used to replace existing beans.
3636
*
3737
* @author Phillip Webb
38+
* @deprecated since 3.4.0 for removal in 3.6.0
3839
*/
3940
@SuppressWarnings("removal")
4041
@ExtendWith(SpringExtension.class)

spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/mock/mockito/MockBeanOnConfigurationFieldForNewBeanIntegrationTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
* used to inject new mock instances.
3535
*
3636
* @author Phillip Webb
37+
* @deprecated since 3.4.0 for removal in 3.6.0
3738
*/
3839
@SuppressWarnings("removal")
3940
@ExtendWith(SpringExtension.class)

spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/mock/mockito/MockBeanOnContextHierarchyIntegrationTests.java

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@
2020
import org.junit.jupiter.api.extension.ExtendWith;
2121

2222
import org.springframework.beans.factory.annotation.Autowired;
23-
import org.springframework.boot.test.mock.mockito.MockBeanOnContextHierarchyIntegrationTests.ChildConfig;
24-
import org.springframework.boot.test.mock.mockito.MockBeanOnContextHierarchyIntegrationTests.ParentConfig;
25-
import org.springframework.boot.test.mock.mockito.example.ExampleService;
26-
import org.springframework.boot.test.mock.mockito.example.ExampleServiceCaller;
2723
import org.springframework.context.ApplicationContext;
2824
import org.springframework.context.ApplicationContextAware;
2925
import org.springframework.context.annotation.Configuration;
@@ -38,12 +34,13 @@
3834
* {@link ContextHierarchy @ContextHierarchy}.
3935
*
4036
* @author Phillip Webb
37+
* @deprecated since 3.4.0 for removal in 3.6.0
4138
*/
4239
@SuppressWarnings("removal")
4340
@Deprecated(since = "3.4.0", forRemoval = true)
4441
@ExtendWith(SpringExtension.class)
45-
@ContextHierarchy({ @ContextConfiguration(classes = ParentConfig.class),
46-
@ContextConfiguration(classes = ChildConfig.class) })
42+
@ContextHierarchy({ @ContextConfiguration(classes = MockBeanOnContextHierarchyIntegrationTests.ParentConfig.class),
43+
@ContextConfiguration(classes = MockBeanOnContextHierarchyIntegrationTests.ChildConfig.class) })
4744
class MockBeanOnContextHierarchyIntegrationTests {
4845

4946
@Autowired
@@ -53,22 +50,30 @@ class MockBeanOnContextHierarchyIntegrationTests {
5350
void testMocking() {
5451
ApplicationContext context = this.childConfig.getContext();
5552
ApplicationContext parentContext = context.getParent();
56-
assertThat(parentContext.getBeanNamesForType(ExampleService.class)).hasSize(1);
57-
assertThat(parentContext.getBeanNamesForType(ExampleServiceCaller.class)).isEmpty();
58-
assertThat(context.getBeanNamesForType(ExampleService.class)).isEmpty();
59-
assertThat(context.getBeanNamesForType(ExampleServiceCaller.class)).hasSize(1);
60-
assertThat(context.getBean(ExampleService.class)).isNotNull();
61-
assertThat(context.getBean(ExampleServiceCaller.class)).isNotNull();
53+
assertThat(parentContext
54+
.getBeanNamesForType(org.springframework.boot.test.mock.mockito.example.ExampleService.class)).hasSize(1);
55+
assertThat(parentContext
56+
.getBeanNamesForType(org.springframework.boot.test.mock.mockito.example.ExampleServiceCaller.class))
57+
.isEmpty();
58+
assertThat(context.getBeanNamesForType(org.springframework.boot.test.mock.mockito.example.ExampleService.class))
59+
.isEmpty();
60+
assertThat(context
61+
.getBeanNamesForType(org.springframework.boot.test.mock.mockito.example.ExampleServiceCaller.class))
62+
.hasSize(1);
63+
assertThat(context.getBean(org.springframework.boot.test.mock.mockito.example.ExampleService.class))
64+
.isNotNull();
65+
assertThat(context.getBean(org.springframework.boot.test.mock.mockito.example.ExampleServiceCaller.class))
66+
.isNotNull();
6267
}
6368

6469
@Configuration(proxyBeanMethods = false)
65-
@MockBean(ExampleService.class)
70+
@MockBean(org.springframework.boot.test.mock.mockito.example.ExampleService.class)
6671
static class ParentConfig {
6772

6873
}
6974

7075
@Configuration(proxyBeanMethods = false)
71-
@MockBean(ExampleServiceCaller.class)
76+
@MockBean(org.springframework.boot.test.mock.mockito.example.ExampleServiceCaller.class)
7277
static class ChildConfig implements ApplicationContextAware {
7378

7479
private ApplicationContext context;

spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/mock/mockito/MockBeanOnScopedProxyTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
*
3939
* @author Phillip Webb
4040
* @see <a href="https://github.com/spring-projects/spring-boot/issues/5724">gh-5724</a>
41+
* @deprecated since 3.4.0 for removal in 3.6.0
4142
*/
4243
@SuppressWarnings("removal")
4344
@Deprecated(since = "3.4.0", forRemoval = true)

spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/mock/mockito/MockBeanOnTestClassForExistingBeanIntegrationTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
* Test {@link MockBean @MockBean} on a test class can be used to replace existing beans.
3535
*
3636
* @author Phillip Webb
37+
* @deprecated since 3.4.0 for removal in 3.6.0
3738
*/
3839
@SuppressWarnings("removal")
3940
@Deprecated(since = "3.4.0", forRemoval = true)

spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/mock/mockito/MockBeanOnTestClassForNewBeanIntegrationTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
* instances.
3535
*
3636
* @author Phillip Webb
37+
* @deprecated since 3.4.0 for removal in 3.6.0
3738
*/
3839
@SuppressWarnings("removal")
3940
@Deprecated(since = "3.4.0", forRemoval = true)

spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/mock/mockito/MockBeanOnTestFieldForExistingBeanCacheIntegrationTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
*
3737
* @author Phillip Webb
3838
* @see MockBeanOnTestFieldForExistingBeanIntegrationTests
39+
* @deprecated since 3.4.0 for removal in 3.6.0
3940
*/
4041
@SuppressWarnings("removal")
4142
@Deprecated(since = "3.4.0", forRemoval = true)

spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/mock/mockito/MockBeanOnTestFieldForExistingBeanConfig.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
* config to trigger caching.
2828
*
2929
* @author Phillip Webb
30+
* @deprecated since 3.4.0 for removal in 3.6.0
3031
*/
3132
@SuppressWarnings("removal")
3233
@Deprecated(since = "3.4.0", forRemoval = true)

spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/mock/mockito/MockBeanOnTestFieldForExistingBeanIntegrationTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
*
3535
* @author Phillip Webb
3636
* @see MockBeanOnTestFieldForExistingBeanCacheIntegrationTests
37+
* @deprecated since 3.4.0 for removal in 3.6.0
3738
*/
3839
@SuppressWarnings("removal")
3940
@Deprecated(since = "3.4.0", forRemoval = true)

spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/mock/mockito/MockBeanOnTestFieldForExistingBeanWithQualifierIntegrationTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
*
4040
* @author Stephane Nicoll
4141
* @author Phillip Webb
42+
* @deprecated since 3.4.0 for removal in 3.6.0
4243
*/
4344
@SuppressWarnings("removal")
4445
@Deprecated(since = "3.4.0", forRemoval = true)

spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/mock/mockito/MockBeanOnTestFieldForNewBeanIntegrationTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
* instances.
3535
*
3636
* @author Phillip Webb
37+
* @deprecated since 3.4.0 for removal in 3.6.0
3738
*/
3839
@SuppressWarnings("removal")
3940
@Deprecated(since = "3.4.0", forRemoval = true)

spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/mock/mockito/MockBeanWithAopProxyTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
*
4646
* @author Phillip Webb
4747
* @see <a href="https://github.com/spring-projects/spring-boot/issues/5837">5837</a>
48+
* @deprecated since 3.4.0 for removal in 3.6.0
4849
*/
4950
@SuppressWarnings("removal")
5051
@Deprecated(since = "3.4.0", forRemoval = true)

spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/mock/mockito/MockBeanWithAsyncInterfaceMethodIntegrationTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
* Tests for a mock bean where the mocked interface has an async method.
3434
*
3535
* @author Andy Wilkinson
36+
* @deprecated since 3.4.0 for removal in 3.6.0
3637
*/
3738
@SuppressWarnings("removal")
3839
@Deprecated(since = "3.4.0", forRemoval = true)

spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/mock/mockito/MockBeanWithDirtiesContextClassModeBeforeMethodIntegrationTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
* {@link DirtiesContext @DirtiesContext} and {@link ClassMode#BEFORE_EACH_TEST_METHOD}.
3737
*
3838
* @author Andy Wilkinson
39+
* @deprecated since 3.4.0 for removal in 3.6.0
3940
*/
4041
@SuppressWarnings("removal")
4142
@Deprecated(since = "3.4.0", forRemoval = true)

spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/mock/mockito/MockBeanWithGenericsOnTestFieldForNewBeanIntegrationTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
* instances.
3535
*
3636
* @author Phillip Webb
37+
* @deprecated since 3.4.0 for removal in 3.6.0
3738
*/
3839
@SuppressWarnings("removal")
3940
@Deprecated(since = "3.4.0", forRemoval = true)

spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/mock/mockito/MockBeanWithInjectedFieldIntegrationTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
* Tests for a mock bean where the class being mocked uses field injection.
3232
*
3333
* @author Andy Wilkinson
34+
* @deprecated since 3.4.0 for removal in 3.6.0
3435
*/
3536
@SuppressWarnings("removal")
3637
@Deprecated(since = "3.4.0", forRemoval = true)

spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/mock/mockito/MockBeanWithSpringMethodRuleRepeatJUnit4IntegrationTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
*
3131
* @author Andy Wilkinson
3232
* @see <a href="https://github.com/spring-projects/spring-boot/issues/27693">gh-27693</a>
33+
* @deprecated since 3.4.0 for removal in 3.6.0
3334
*/
3435
@SuppressWarnings("removal")
3536
@Deprecated(since = "3.4.0", forRemoval = true)

spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/mock/mockito/MockDefinitionTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
* Tests for {@link MockDefinition}.
3434
*
3535
* @author Phillip Webb
36+
* @deprecated since 3.4.0 for removal in 3.6.0
3637
*/
3738
@SuppressWarnings("removal")
3839
@Deprecated(since = "3.4.0", forRemoval = true)

0 commit comments

Comments
 (0)