commit
46150bae89
|
|
@ -1 +1 @@
|
||||||
javaFormatVersion=0.0.41
|
javaFormatVersion=0.0.43
|
||||||
|
|
|
||||||
|
|
@ -54,6 +54,7 @@ public class PrometheusProperties {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Histogram type for backing DistributionSummary and Timer.
|
* Histogram type for backing DistributionSummary and Timer.
|
||||||
|
* @deprecated since 3.3.0 for removal in 3.5.0
|
||||||
*/
|
*/
|
||||||
@Deprecated(since = "3.3.0", forRemoval = true)
|
@Deprecated(since = "3.3.0", forRemoval = true)
|
||||||
private HistogramFlavor histogramFlavor = HistogramFlavor.Prometheus;
|
private HistogramFlavor histogramFlavor = HistogramFlavor.Prometheus;
|
||||||
|
|
@ -230,7 +231,7 @@ public class PrometheusProperties {
|
||||||
@Deprecated(since = "3.3.0", forRemoval = true)
|
@Deprecated(since = "3.3.0", forRemoval = true)
|
||||||
public enum HistogramFlavor {
|
public enum HistogramFlavor {
|
||||||
|
|
||||||
Prometheus, VictoriaMetrics;
|
Prometheus, VictoriaMetrics
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,7 @@ import org.springframework.web.client.RestTemplate;
|
||||||
*
|
*
|
||||||
* @author Moritz Halbritter
|
* @author Moritz Halbritter
|
||||||
* @author Stefan Bratanov
|
* @author Stefan Bratanov
|
||||||
|
* @deprecated since 3.3.0 for removal in 3.5.0 in favor of {@link ZipkinHttpClientSender}
|
||||||
*/
|
*/
|
||||||
@Deprecated(since = "3.3.0", forRemoval = true)
|
@Deprecated(since = "3.3.0", forRemoval = true)
|
||||||
class ZipkinRestTemplateSender extends HttpSender {
|
class ZipkinRestTemplateSender extends HttpSender {
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,7 @@ import org.springframework.web.reactive.function.client.WebClient;
|
||||||
*
|
*
|
||||||
* @author Stefan Bratanov
|
* @author Stefan Bratanov
|
||||||
* @author Moritz Halbritter
|
* @author Moritz Halbritter
|
||||||
|
* @deprecated since 3.3.0 for removal in 3.5.0 in favor of {@link ZipkinHttpClientSender}
|
||||||
*/
|
*/
|
||||||
@Deprecated(since = "3.3.0", forRemoval = true)
|
@Deprecated(since = "3.3.0", forRemoval = true)
|
||||||
class ZipkinWebClientSender extends HttpSender {
|
class ZipkinWebClientSender extends HttpSender {
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||||
*
|
*
|
||||||
* @author Toshiaki Maki
|
* @author Toshiaki Maki
|
||||||
*/
|
*/
|
||||||
public class OtlpLoggingAutoConfigurationIntegrationTests {
|
class OtlpLoggingAutoConfigurationIntegrationTests {
|
||||||
|
|
||||||
private final ApplicationContextRunner contextRunner = new ApplicationContextRunner()
|
private final ApplicationContextRunner contextRunner = new ApplicationContextRunner()
|
||||||
.withPropertyValues("spring.application.name=otlp-logs-test",
|
.withPropertyValues("spring.application.name=otlp-logs-test",
|
||||||
|
|
|
||||||
|
|
@ -62,10 +62,10 @@ import org.springframework.web.filter.OncePerRequestFilter;
|
||||||
* @author Andy Wilkinson
|
* @author Andy Wilkinson
|
||||||
* @see JerseyEndpointResourceFactory
|
* @see JerseyEndpointResourceFactory
|
||||||
*/
|
*/
|
||||||
public class JerseyWebEndpointIntegrationTests
|
class JerseyWebEndpointIntegrationTests
|
||||||
extends AbstractWebEndpointIntegrationTests<AnnotationConfigServletWebServerApplicationContext> {
|
extends AbstractWebEndpointIntegrationTests<AnnotationConfigServletWebServerApplicationContext> {
|
||||||
|
|
||||||
public JerseyWebEndpointIntegrationTests() {
|
JerseyWebEndpointIntegrationTests() {
|
||||||
super(JerseyWebEndpointIntegrationTests::createApplicationContext,
|
super(JerseyWebEndpointIntegrationTests::createApplicationContext,
|
||||||
JerseyWebEndpointIntegrationTests::applyAuthenticatedConfiguration);
|
JerseyWebEndpointIntegrationTests::applyAuthenticatedConfiguration);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -491,6 +491,7 @@ public class ServerProperties {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether to reject requests with illegal header names or values.
|
* Whether to reject requests with illegal header names or values.
|
||||||
|
* @deprecated since 2.7.12 for removal in 3.3.0
|
||||||
*/
|
*/
|
||||||
@Deprecated(since = "2.7.12", forRemoval = true) // Remove in 3.3
|
@Deprecated(since = "2.7.12", forRemoval = true) // Remove in 3.3
|
||||||
private boolean rejectIllegalHeader = true;
|
private boolean rejectIllegalHeader = true;
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,7 @@ import static org.mockito.Mockito.never;
|
||||||
* Tests for {@link JooqExceptionTranslator}
|
* Tests for {@link JooqExceptionTranslator}
|
||||||
*
|
*
|
||||||
* @author Andy Wilkinson
|
* @author Andy Wilkinson
|
||||||
|
* @deprecated since 3.3.0 for removal in 3.5.0
|
||||||
*/
|
*/
|
||||||
@Deprecated(since = "3.3.0")
|
@Deprecated(since = "3.3.0")
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ import static org.springframework.boot.test.autoconfigure.AutoConfigurationImpor
|
||||||
*/
|
*/
|
||||||
@DataLdapTest
|
@DataLdapTest
|
||||||
@Testcontainers(disabledWithoutDocker = true)
|
@Testcontainers(disabledWithoutDocker = true)
|
||||||
public class DataLdapTestDockerTests {
|
class DataLdapTestDockerTests {
|
||||||
|
|
||||||
@Container
|
@Container
|
||||||
@ServiceConnection
|
@ServiceConnection
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ import org.springframework.util.ObjectUtils;
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
* @see DefinitionsParser
|
* @see DefinitionsParser
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,7 @@ import org.springframework.util.StringUtils;
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
* @author Stephane Nicoll
|
* @author Stephane Nicoll
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,7 @@ import static org.mockito.Mockito.mock;
|
||||||
* A complete definition that can be used to create a Mockito mock.
|
* A complete definition that can be used to create a Mockito mock.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@ import org.springframework.test.context.MergedContextConfiguration;
|
||||||
* A {@link ContextCustomizer} to add Mockito support.
|
* A {@link ContextCustomizer} to add Mockito support.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,7 @@ import org.springframework.test.context.TestContextAnnotationUtils;
|
||||||
* A {@link ContextCustomizerFactory} to add Mockito support.
|
* A {@link ContextCustomizerFactory} to add Mockito support.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,7 @@ import org.springframework.core.annotation.MergedAnnotations;
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
* @author Stephane Nicoll
|
* @author Stephane Nicoll
|
||||||
* @see Definition
|
* @see Definition
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,7 @@ import static org.mockito.Mockito.mock;
|
||||||
* A complete definition that can be used to create a Mockito spy.
|
* A complete definition that can be used to create a Mockito spy.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ package org.springframework.boot.test.mock.mockito;
|
||||||
* Concrete implementation of {@link AbstractMockBeanOnGenericTests}.
|
* Concrete implementation of {@link AbstractMockBeanOnGenericTests}.
|
||||||
*
|
*
|
||||||
* @author Madhura Bhave
|
* @author Madhura Bhave
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||||
* @param <T> type of thing
|
* @param <T> type of thing
|
||||||
* @param <U> type of something
|
* @param <U> type of something
|
||||||
* @author Madhura Bhave
|
* @author Madhura Bhave
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@ import static org.assertj.core.api.Assertions.assertThatIllegalStateException;
|
||||||
* Tests for {@link DefinitionsParser}.
|
* Tests for {@link DefinitionsParser}.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,7 @@ import static org.mockito.Mockito.mock;
|
||||||
* Tests for application context caching when using {@link MockBean @MockBean}.
|
* Tests for application context caching when using {@link MockBean @MockBean}.
|
||||||
*
|
*
|
||||||
* @author Andy Wilkinson
|
* @author Andy Wilkinson
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,7 @@ import static org.mockito.Mockito.mock;
|
||||||
* Test {@link MockBean @MockBean} for a factory bean.
|
* Test {@link MockBean @MockBean} for a factory bean.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,7 @@ import static org.mockito.BDDMockito.given;
|
||||||
* existing beans.
|
* existing beans.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,7 @@ import static org.mockito.BDDMockito.given;
|
||||||
* instances.
|
* instances.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@ExtendWith(SpringExtension.class)
|
@ExtendWith(SpringExtension.class)
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,7 @@ import static org.mockito.BDDMockito.given;
|
||||||
* used to replace existing beans.
|
* used to replace existing beans.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@ExtendWith(SpringExtension.class)
|
@ExtendWith(SpringExtension.class)
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,7 @@ import static org.mockito.BDDMockito.given;
|
||||||
* used to inject new mock instances.
|
* used to inject new mock instances.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@ExtendWith(SpringExtension.class)
|
@ExtendWith(SpringExtension.class)
|
||||||
|
|
|
||||||
|
|
@ -20,10 +20,6 @@ import org.junit.jupiter.api.Test;
|
||||||
import org.junit.jupiter.api.extension.ExtendWith;
|
import org.junit.jupiter.api.extension.ExtendWith;
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.boot.test.mock.mockito.MockBeanOnContextHierarchyIntegrationTests.ChildConfig;
|
|
||||||
import org.springframework.boot.test.mock.mockito.MockBeanOnContextHierarchyIntegrationTests.ParentConfig;
|
|
||||||
import org.springframework.boot.test.mock.mockito.example.ExampleService;
|
|
||||||
import org.springframework.boot.test.mock.mockito.example.ExampleServiceCaller;
|
|
||||||
import org.springframework.context.ApplicationContext;
|
import org.springframework.context.ApplicationContext;
|
||||||
import org.springframework.context.ApplicationContextAware;
|
import org.springframework.context.ApplicationContextAware;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
|
@ -38,12 +34,13 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||||
* {@link ContextHierarchy @ContextHierarchy}.
|
* {@link ContextHierarchy @ContextHierarchy}.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
@ExtendWith(SpringExtension.class)
|
@ExtendWith(SpringExtension.class)
|
||||||
@ContextHierarchy({ @ContextConfiguration(classes = ParentConfig.class),
|
@ContextHierarchy({ @ContextConfiguration(classes = MockBeanOnContextHierarchyIntegrationTests.ParentConfig.class),
|
||||||
@ContextConfiguration(classes = ChildConfig.class) })
|
@ContextConfiguration(classes = MockBeanOnContextHierarchyIntegrationTests.ChildConfig.class) })
|
||||||
class MockBeanOnContextHierarchyIntegrationTests {
|
class MockBeanOnContextHierarchyIntegrationTests {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
|
|
@ -53,22 +50,30 @@ class MockBeanOnContextHierarchyIntegrationTests {
|
||||||
void testMocking() {
|
void testMocking() {
|
||||||
ApplicationContext context = this.childConfig.getContext();
|
ApplicationContext context = this.childConfig.getContext();
|
||||||
ApplicationContext parentContext = context.getParent();
|
ApplicationContext parentContext = context.getParent();
|
||||||
assertThat(parentContext.getBeanNamesForType(ExampleService.class)).hasSize(1);
|
assertThat(parentContext
|
||||||
assertThat(parentContext.getBeanNamesForType(ExampleServiceCaller.class)).isEmpty();
|
.getBeanNamesForType(org.springframework.boot.test.mock.mockito.example.ExampleService.class)).hasSize(1);
|
||||||
assertThat(context.getBeanNamesForType(ExampleService.class)).isEmpty();
|
assertThat(parentContext
|
||||||
assertThat(context.getBeanNamesForType(ExampleServiceCaller.class)).hasSize(1);
|
.getBeanNamesForType(org.springframework.boot.test.mock.mockito.example.ExampleServiceCaller.class))
|
||||||
assertThat(context.getBean(ExampleService.class)).isNotNull();
|
.isEmpty();
|
||||||
assertThat(context.getBean(ExampleServiceCaller.class)).isNotNull();
|
assertThat(context.getBeanNamesForType(org.springframework.boot.test.mock.mockito.example.ExampleService.class))
|
||||||
|
.isEmpty();
|
||||||
|
assertThat(context
|
||||||
|
.getBeanNamesForType(org.springframework.boot.test.mock.mockito.example.ExampleServiceCaller.class))
|
||||||
|
.hasSize(1);
|
||||||
|
assertThat(context.getBean(org.springframework.boot.test.mock.mockito.example.ExampleService.class))
|
||||||
|
.isNotNull();
|
||||||
|
assertThat(context.getBean(org.springframework.boot.test.mock.mockito.example.ExampleServiceCaller.class))
|
||||||
|
.isNotNull();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Configuration(proxyBeanMethods = false)
|
@Configuration(proxyBeanMethods = false)
|
||||||
@MockBean(ExampleService.class)
|
@MockBean(org.springframework.boot.test.mock.mockito.example.ExampleService.class)
|
||||||
static class ParentConfig {
|
static class ParentConfig {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Configuration(proxyBeanMethods = false)
|
@Configuration(proxyBeanMethods = false)
|
||||||
@MockBean(ExampleServiceCaller.class)
|
@MockBean(org.springframework.boot.test.mock.mockito.example.ExampleServiceCaller.class)
|
||||||
static class ChildConfig implements ApplicationContextAware {
|
static class ChildConfig implements ApplicationContextAware {
|
||||||
|
|
||||||
private ApplicationContext context;
|
private ApplicationContext context;
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,7 @@ import static org.mockito.BDDMockito.given;
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
* @see <a href="https://github.com/spring-projects/spring-boot/issues/5724">gh-5724</a>
|
* @see <a href="https://github.com/spring-projects/spring-boot/issues/5724">gh-5724</a>
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,7 @@ import static org.mockito.BDDMockito.given;
|
||||||
* Test {@link MockBean @MockBean} on a test class can be used to replace existing beans.
|
* Test {@link MockBean @MockBean} on a test class can be used to replace existing beans.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,7 @@ import static org.mockito.BDDMockito.given;
|
||||||
* instances.
|
* instances.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@ import static org.mockito.BDDMockito.given;
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
* @see MockBeanOnTestFieldForExistingBeanIntegrationTests
|
* @see MockBeanOnTestFieldForExistingBeanIntegrationTests
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,7 @@ import org.springframework.context.annotation.Import;
|
||||||
* config to trigger caching.
|
* config to trigger caching.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,7 @@ import static org.mockito.BDDMockito.given;
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
* @see MockBeanOnTestFieldForExistingBeanCacheIntegrationTests
|
* @see MockBeanOnTestFieldForExistingBeanCacheIntegrationTests
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,7 @@ import static org.mockito.BDDMockito.then;
|
||||||
*
|
*
|
||||||
* @author Stephane Nicoll
|
* @author Stephane Nicoll
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,7 @@ import static org.mockito.BDDMockito.given;
|
||||||
* instances.
|
* instances.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,7 @@ import static org.mockito.Mockito.times;
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
* @see <a href="https://github.com/spring-projects/spring-boot/issues/5837">5837</a>
|
* @see <a href="https://github.com/spring-projects/spring-boot/issues/5837">5837</a>
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@ import static org.mockito.BDDMockito.given;
|
||||||
* Tests for a mock bean where the mocked interface has an async method.
|
* Tests for a mock bean where the mocked interface has an async method.
|
||||||
*
|
*
|
||||||
* @author Andy Wilkinson
|
* @author Andy Wilkinson
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@ import static org.mockito.BDDMockito.given;
|
||||||
* {@link DirtiesContext @DirtiesContext} and {@link ClassMode#BEFORE_EACH_TEST_METHOD}.
|
* {@link DirtiesContext @DirtiesContext} and {@link ClassMode#BEFORE_EACH_TEST_METHOD}.
|
||||||
*
|
*
|
||||||
* @author Andy Wilkinson
|
* @author Andy Wilkinson
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,7 @@ import static org.mockito.BDDMockito.given;
|
||||||
* instances.
|
* instances.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,7 @@ import static org.mockito.BDDMockito.given;
|
||||||
* Tests for a mock bean where the class being mocked uses field injection.
|
* Tests for a mock bean where the class being mocked uses field injection.
|
||||||
*
|
*
|
||||||
* @author Andy Wilkinson
|
* @author Andy Wilkinson
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||||
*
|
*
|
||||||
* @author Andy Wilkinson
|
* @author Andy Wilkinson
|
||||||
* @see <a href="https://github.com/spring-projects/spring-boot/issues/27693">gh-27693</a>
|
* @see <a href="https://github.com/spring-projects/spring-boot/issues/27693">gh-27693</a>
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@ import static org.mockito.Mockito.mock;
|
||||||
* Tests for {@link MockDefinition}.
|
* Tests for {@link MockDefinition}.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@ import static org.mockito.Mockito.withSettings;
|
||||||
* Tests for {@link MockReset}.
|
* Tests for {@link MockReset}.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||||
* Tests for {@link MockitoContextCustomizerFactory}.
|
* Tests for {@link MockitoContextCustomizerFactory}.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||||
* Tests for {@link MockitoContextCustomizer}.
|
* Tests for {@link MockitoContextCustomizer}.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -50,6 +50,7 @@ import static org.assertj.core.api.Assertions.assertThatIllegalStateException;
|
||||||
* @author Andy Wilkinson
|
* @author Andy Wilkinson
|
||||||
* @author Andreas Neiser
|
* @author Andreas Neiser
|
||||||
* @author Madhura Bhave
|
* @author Madhura Bhave
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,7 @@ import static org.mockito.BDDMockito.given;
|
||||||
* Integration tests for {@link MockitoTestExecutionListener}.
|
* Integration tests for {@link MockitoTestExecutionListener}.
|
||||||
*
|
*
|
||||||
* @author Moritz Halbritter
|
* @author Moritz Halbritter
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,7 @@ import static org.mockito.Mockito.mock;
|
||||||
* Tests for {@link MockitoTestExecutionListener}.
|
* Tests for {@link MockitoTestExecutionListener}.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,7 @@ import static org.mockito.BDDMockito.then;
|
||||||
* Tests for {@link QualifierDefinition}.
|
* Tests for {@link QualifierDefinition}.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,7 @@ import static org.mockito.Mockito.mock;
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
* @author Andy Wilkinson
|
* @author Andy Wilkinson
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||||
* Integration tests for {@link SpringBootMockResolver}.
|
* Integration tests for {@link SpringBootMockResolver}.
|
||||||
*
|
*
|
||||||
* @author Andy Wilkinson
|
* @author Andy Wilkinson
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||||
* Tests for {@link SpringBootMockResolver}.
|
* Tests for {@link SpringBootMockResolver}.
|
||||||
*
|
*
|
||||||
* @author Moritz Halbritter
|
* @author Moritz Halbritter
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,7 @@ import static org.mockito.BDDMockito.then;
|
||||||
* beans.
|
* beans.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,7 @@ import static org.mockito.BDDMockito.then;
|
||||||
* instances.
|
* instances.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,7 @@ import static org.mockito.BDDMockito.then;
|
||||||
* to replace existing beans.
|
* to replace existing beans.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,7 @@ import static org.mockito.BDDMockito.then;
|
||||||
* to inject new spy instances.
|
* to inject new spy instances.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -20,11 +20,6 @@ import org.junit.jupiter.api.Test;
|
||||||
import org.junit.jupiter.api.extension.ExtendWith;
|
import org.junit.jupiter.api.extension.ExtendWith;
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.boot.test.mock.mockito.SpyBeanOnContextHierarchyIntegrationTests.ChildConfig;
|
|
||||||
import org.springframework.boot.test.mock.mockito.SpyBeanOnContextHierarchyIntegrationTests.ParentConfig;
|
|
||||||
import org.springframework.boot.test.mock.mockito.example.ExampleService;
|
|
||||||
import org.springframework.boot.test.mock.mockito.example.ExampleServiceCaller;
|
|
||||||
import org.springframework.boot.test.mock.mockito.example.SimpleExampleService;
|
|
||||||
import org.springframework.context.ApplicationContext;
|
import org.springframework.context.ApplicationContext;
|
||||||
import org.springframework.context.ApplicationContextAware;
|
import org.springframework.context.ApplicationContextAware;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
|
@ -39,12 +34,13 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||||
* {@link ContextHierarchy @ContextHierarchy}.
|
* {@link ContextHierarchy @ContextHierarchy}.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
@ExtendWith(SpringExtension.class)
|
@ExtendWith(SpringExtension.class)
|
||||||
@ContextHierarchy({ @ContextConfiguration(classes = ParentConfig.class),
|
@ContextHierarchy({ @ContextConfiguration(classes = SpyBeanOnContextHierarchyIntegrationTests.ParentConfig.class),
|
||||||
@ContextConfiguration(classes = ChildConfig.class) })
|
@ContextConfiguration(classes = SpyBeanOnContextHierarchyIntegrationTests.ChildConfig.class) })
|
||||||
class SpyBeanOnContextHierarchyIntegrationTests {
|
class SpyBeanOnContextHierarchyIntegrationTests {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
|
|
@ -54,22 +50,30 @@ class SpyBeanOnContextHierarchyIntegrationTests {
|
||||||
void testSpying() {
|
void testSpying() {
|
||||||
ApplicationContext context = this.childConfig.getContext();
|
ApplicationContext context = this.childConfig.getContext();
|
||||||
ApplicationContext parentContext = context.getParent();
|
ApplicationContext parentContext = context.getParent();
|
||||||
assertThat(parentContext.getBeanNamesForType(ExampleService.class)).hasSize(1);
|
assertThat(parentContext
|
||||||
assertThat(parentContext.getBeanNamesForType(ExampleServiceCaller.class)).isEmpty();
|
.getBeanNamesForType(org.springframework.boot.test.mock.mockito.example.ExampleService.class)).hasSize(1);
|
||||||
assertThat(context.getBeanNamesForType(ExampleService.class)).isEmpty();
|
assertThat(parentContext
|
||||||
assertThat(context.getBeanNamesForType(ExampleServiceCaller.class)).hasSize(1);
|
.getBeanNamesForType(org.springframework.boot.test.mock.mockito.example.ExampleServiceCaller.class))
|
||||||
assertThat(context.getBean(ExampleService.class)).isNotNull();
|
.isEmpty();
|
||||||
assertThat(context.getBean(ExampleServiceCaller.class)).isNotNull();
|
assertThat(context.getBeanNamesForType(org.springframework.boot.test.mock.mockito.example.ExampleService.class))
|
||||||
|
.isEmpty();
|
||||||
|
assertThat(context
|
||||||
|
.getBeanNamesForType(org.springframework.boot.test.mock.mockito.example.ExampleServiceCaller.class))
|
||||||
|
.hasSize(1);
|
||||||
|
assertThat(context.getBean(org.springframework.boot.test.mock.mockito.example.ExampleService.class))
|
||||||
|
.isNotNull();
|
||||||
|
assertThat(context.getBean(org.springframework.boot.test.mock.mockito.example.ExampleServiceCaller.class))
|
||||||
|
.isNotNull();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Configuration(proxyBeanMethods = false)
|
@Configuration(proxyBeanMethods = false)
|
||||||
@SpyBean(SimpleExampleService.class)
|
@SpyBean(org.springframework.boot.test.mock.mockito.example.SimpleExampleService.class)
|
||||||
static class ParentConfig {
|
static class ParentConfig {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Configuration(proxyBeanMethods = false)
|
@Configuration(proxyBeanMethods = false)
|
||||||
@SpyBean(ExampleServiceCaller.class)
|
@SpyBean(org.springframework.boot.test.mock.mockito.example.ExampleServiceCaller.class)
|
||||||
static class ChildConfig implements ApplicationContextAware {
|
static class ChildConfig implements ApplicationContextAware {
|
||||||
|
|
||||||
private ApplicationContext context;
|
private ApplicationContext context;
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@ import static org.mockito.BDDMockito.then;
|
||||||
* Test {@link SpyBean @SpyBean} on a test class can be used to replace existing beans.
|
* Test {@link SpyBean @SpyBean} on a test class can be used to replace existing beans.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@ import static org.mockito.BDDMockito.then;
|
||||||
* Test {@link SpyBean @SpyBean} on a test class can be used to inject new spy instances.
|
* Test {@link SpyBean @SpyBean} on a test class can be used to inject new spy instances.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@ import static org.mockito.BDDMockito.then;
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
* @see SpyBeanOnTestFieldForExistingBeanIntegrationTests
|
* @see SpyBeanOnTestFieldForExistingBeanIntegrationTests
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,7 @@ import org.springframework.context.annotation.Import;
|
||||||
* config to trigger caching.
|
* config to trigger caching.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,7 @@ import static org.mockito.BDDMockito.then;
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
* @see SpyBeanOnTestFieldForExistingBeanCacheIntegrationTests
|
* @see SpyBeanOnTestFieldForExistingBeanCacheIntegrationTests
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,7 @@ import static org.mockito.BDDMockito.then;
|
||||||
* bean while preserving qualifiers.
|
* bean while preserving qualifiers.
|
||||||
*
|
*
|
||||||
* @author Andreas Neiser
|
* @author Andreas Neiser
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,6 @@ import org.junit.jupiter.api.Test;
|
||||||
import org.junit.jupiter.api.extension.ExtendWith;
|
import org.junit.jupiter.api.extension.ExtendWith;
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.boot.test.mock.mockito.SpyBeanOnTestFieldForExistingCircularBeansIntegrationTests.SpyBeanOnTestFieldForExistingCircularBeansConfig;
|
|
||||||
import org.springframework.context.annotation.Import;
|
import org.springframework.context.annotation.Import;
|
||||||
import org.springframework.test.context.ContextConfiguration;
|
import org.springframework.test.context.ContextConfiguration;
|
||||||
import org.springframework.test.context.junit.jupiter.SpringExtension;
|
import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||||
|
|
@ -32,11 +31,13 @@ import static org.mockito.BDDMockito.then;
|
||||||
* beans with circular dependencies.
|
* beans with circular dependencies.
|
||||||
*
|
*
|
||||||
* @author Andy Wilkinson
|
* @author Andy Wilkinson
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
@ExtendWith(SpringExtension.class)
|
@ExtendWith(SpringExtension.class)
|
||||||
@ContextConfiguration(classes = SpyBeanOnTestFieldForExistingCircularBeansConfig.class)
|
@ContextConfiguration(
|
||||||
|
classes = SpyBeanOnTestFieldForExistingCircularBeansIntegrationTests.SpyBeanOnTestFieldForExistingCircularBeansConfig.class)
|
||||||
class SpyBeanOnTestFieldForExistingCircularBeansIntegrationTests {
|
class SpyBeanOnTestFieldForExistingCircularBeansIntegrationTests {
|
||||||
|
|
||||||
@SpyBean
|
@SpyBean
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,7 @@ import static org.mockito.BDDMockito.then;
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
* @see SpyBeanOnTestFieldForExistingBeanCacheIntegrationTests
|
* @see SpyBeanOnTestFieldForExistingBeanCacheIntegrationTests
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||||
* bean with generics that's produced by a factory bean.
|
* bean with generics that's produced by a factory bean.
|
||||||
*
|
*
|
||||||
* @author Andy Wilkinson
|
* @author Andy Wilkinson
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,7 @@ import static org.mockito.BDDMockito.then;
|
||||||
* instance when there are multiple candidates and one is primary.
|
* instance when there are multiple candidates and one is primary.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,7 @@ import static org.mockito.BDDMockito.then;
|
||||||
* instances.
|
* instances.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,7 @@ import static org.mockito.Mockito.reset;
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
* @see <a href="https://github.com/spring-projects/spring-boot/issues/5837">5837</a>
|
* @see <a href="https://github.com/spring-projects/spring-boot/issues/5837">5837</a>
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,7 @@ import static org.mockito.BDDMockito.then;
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
* @see <a href="https://github.com/spring-projects/spring-boot/issues/5837">5837</a>
|
* @see <a href="https://github.com/spring-projects/spring-boot/issues/5837">5837</a>
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,7 @@ import static org.mockito.BDDMockito.then;
|
||||||
* {@link DirtiesContext @DirtiesContext} and {@link ClassMode#BEFORE_EACH_TEST_METHOD}.
|
* {@link DirtiesContext @DirtiesContext} and {@link ClassMode#BEFORE_EACH_TEST_METHOD}.
|
||||||
*
|
*
|
||||||
* @author Andy Wilkinson
|
* @author Andy Wilkinson
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,7 @@ import static org.mockito.BDDMockito.then;
|
||||||
* Tests for {@link SpyBean @SpyBean} with a JDK proxy.
|
* Tests for {@link SpyBean @SpyBean} with a JDK proxy.
|
||||||
*
|
*
|
||||||
* @author Andy Wilkinson
|
* @author Andy Wilkinson
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
* @author Andy Wilkinson
|
* @author Andy Wilkinson
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,7 @@ import static org.mockito.Mockito.mock;
|
||||||
* Tests for {@link SpyDefinition}.
|
* Tests for {@link SpyDefinition}.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,7 @@ import org.springframework.beans.factory.annotation.Qualifier;
|
||||||
* Custom qualifier for testing.
|
* Custom qualifier for testing.
|
||||||
*
|
*
|
||||||
* @author Stephane Nicoll
|
* @author Stephane Nicoll
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
@Qualifier
|
@Qualifier
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ package org.springframework.boot.test.mock.mockito.example;
|
||||||
* An {@link ExampleService} that uses a custom qualifier.
|
* An {@link ExampleService} that uses a custom qualifier.
|
||||||
*
|
*
|
||||||
* @author Andy Wilkinson
|
* @author Andy Wilkinson
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ package org.springframework.boot.test.mock.mockito.example;
|
||||||
* Example extra interface for mocking tests.
|
* Example extra interface for mocking tests.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
public interface ExampleExtraInterface {
|
public interface ExampleExtraInterface {
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@ package org.springframework.boot.test.mock.mockito.example;
|
||||||
*
|
*
|
||||||
* @param <T> the generic type
|
* @param <T> the generic type
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
public interface ExampleGenericService<T> {
|
public interface ExampleGenericService<T> {
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ package org.springframework.boot.test.mock.mockito.example;
|
||||||
* Example bean for mocking tests that calls {@link ExampleGenericService}.
|
* Example bean for mocking tests that calls {@link ExampleGenericService}.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ package org.springframework.boot.test.mock.mockito.example;
|
||||||
* Example bean for mocking tests that calls {@link ExampleGenericService}.
|
* Example bean for mocking tests that calls {@link ExampleGenericService}.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ package org.springframework.boot.test.mock.mockito.example;
|
||||||
* Example service interface for mocking tests.
|
* Example service interface for mocking tests.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
public interface ExampleService {
|
public interface ExampleService {
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ package org.springframework.boot.test.mock.mockito.example;
|
||||||
* Example bean for mocking tests that calls {@link ExampleService}.
|
* Example bean for mocking tests that calls {@link ExampleService}.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@ import org.springframework.stereotype.Service;
|
||||||
* An {@link ExampleService} that always throws an exception.
|
* An {@link ExampleService} that always throws an exception.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ package org.springframework.boot.test.mock.mockito.example;
|
||||||
* Example service implementation for spy tests.
|
* Example service implementation for spy tests.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ package org.springframework.boot.test.mock.mockito.example;
|
||||||
* Example generic service implementation for spy tests.
|
* Example generic service implementation for spy tests.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ package org.springframework.boot.test.mock.mockito.example;
|
||||||
* Example service implementation for spy tests.
|
* Example service implementation for spy tests.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ package org.springframework.boot.test.mock.mockito.example;
|
||||||
* Example generic service implementation for spy tests.
|
* Example generic service implementation for spy tests.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||||
@SpringBootTest
|
@SpringBootTest
|
||||||
@DisabledIfDockerUnavailable
|
@DisabledIfDockerUnavailable
|
||||||
@ImportTestcontainers(LoadTimeWeaverAwareConsumerContainers.class)
|
@ImportTestcontainers(LoadTimeWeaverAwareConsumerContainers.class)
|
||||||
public class LoadTimeWeaverAwareConsumerImportTestcontainersTests implements LoadTimeWeaverAwareConsumerContainers {
|
class LoadTimeWeaverAwareConsumerImportTestcontainersTests implements LoadTimeWeaverAwareConsumerContainers {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private LoadTimeWeaverAwareConsumer consumer;
|
private LoadTimeWeaverAwareConsumer consumer;
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||||
@TestPropertySource(properties = "spring.testcontainers.beans.startup=parallel")
|
@TestPropertySource(properties = "spring.testcontainers.beans.startup=parallel")
|
||||||
@DisabledIfDockerUnavailable
|
@DisabledIfDockerUnavailable
|
||||||
@ExtendWith(OutputCaptureExtension.class)
|
@ExtendWith(OutputCaptureExtension.class)
|
||||||
public class TestContainersParallelStartupIntegrationTests {
|
class TestContainersParallelStartupIntegrationTests {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void startsInParallel(CapturedOutput out) {
|
void startsInParallel(CapturedOutput out) {
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,7 @@ import org.springframework.boot.configurationsample.ConfigurationProperties;
|
||||||
* Deprecated configuration properties.
|
* Deprecated configuration properties.
|
||||||
*
|
*
|
||||||
* @author Stephane Nicoll
|
* @author Stephane Nicoll
|
||||||
|
* @deprecated deprecated
|
||||||
*/
|
*/
|
||||||
@Getter
|
@Getter
|
||||||
@Setter
|
@Setter
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@ import org.springframework.boot.configurationsample.ConfigurationProperties;
|
||||||
* Sample for testing method configuration with deprecated class.
|
* Sample for testing method configuration with deprecated class.
|
||||||
*
|
*
|
||||||
* @author Stephane Nicoll
|
* @author Stephane Nicoll
|
||||||
|
* @deprecated deprecated
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public class DeprecatedClassMethodConfig {
|
public class DeprecatedClassMethodConfig {
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@ import org.springframework.boot.configurationsample.ConfigurationProperties;
|
||||||
* Deprecated configuration properties.
|
* Deprecated configuration properties.
|
||||||
*
|
*
|
||||||
* @author Stephane Nicoll
|
* @author Stephane Nicoll
|
||||||
|
* @deprecated deprecated
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@ConfigurationProperties(prefix = "deprecated")
|
@ConfigurationProperties(prefix = "deprecated")
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ import org.junit.jupiter.api.io.TempDir;
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
*/
|
*/
|
||||||
@Disabled("Only used for manual testing")
|
@Disabled("Only used for manual testing")
|
||||||
public class VirtualZipPerformanceTests {
|
class VirtualZipPerformanceTests {
|
||||||
|
|
||||||
@TempDir
|
@TempDir
|
||||||
Path temp;
|
Path temp;
|
||||||
|
|
|
||||||
|
|
@ -223,6 +223,8 @@ public final class ClientHttpRequestFactories {
|
||||||
/**
|
/**
|
||||||
* Support for
|
* Support for
|
||||||
* {@link org.springframework.http.client.OkHttp3ClientHttpRequestFactory}.
|
* {@link org.springframework.http.client.OkHttp3ClientHttpRequestFactory}.
|
||||||
|
*
|
||||||
|
* @deprecated since 3.2.0 for removal in 3.4.0
|
||||||
*/
|
*/
|
||||||
@Deprecated(since = "3.2.0", forRemoval = true)
|
@Deprecated(since = "3.2.0", forRemoval = true)
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ import static org.assertj.core.api.Assertions.assertThatIllegalStateException;
|
||||||
* @author Moritz Halbritter
|
* @author Moritz Halbritter
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
*/
|
*/
|
||||||
public class JsonWriterTests {
|
class JsonWriterTests {
|
||||||
|
|
||||||
private static final Person PERSON = new Person("Spring", "Boot", 10);
|
private static final Person PERSON = new Person("Spring", "Boot", 10);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,10 +33,11 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||||
* client.
|
* client.
|
||||||
*
|
*
|
||||||
* @author Andy Wilkinson
|
* @author Andy Wilkinson
|
||||||
|
* @deprecated since 3.2.0 for removal in 3.4.0
|
||||||
*/
|
*/
|
||||||
@ClassPathOverrides("com.squareup.okhttp3:okhttp:3.14.9")
|
@ClassPathOverrides("com.squareup.okhttp3:okhttp:3.14.9")
|
||||||
@ClassPathExclusions({ "httpclient5-*.jar", "jetty-client-*.jar" })
|
@ClassPathExclusions({ "httpclient5-*.jar", "jetty-client-*.jar" })
|
||||||
@Deprecated(since = "3.2.0")
|
@Deprecated(since = "3.2.0", forRemoval = true)
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
class ClientHttpRequestFactoriesOkHttp3Tests
|
class ClientHttpRequestFactoriesOkHttp3Tests
|
||||||
extends AbstractClientHttpRequestFactoriesTests<OkHttp3ClientHttpRequestFactory> {
|
extends AbstractClientHttpRequestFactoriesTests<OkHttp3ClientHttpRequestFactory> {
|
||||||
|
|
|
||||||
|
|
@ -32,9 +32,10 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||||
* client.
|
* client.
|
||||||
*
|
*
|
||||||
* @author Andy Wilkinson
|
* @author Andy Wilkinson
|
||||||
|
* @deprecated since 3.2.0 for removal in 3.4.0
|
||||||
*/
|
*/
|
||||||
@ClassPathExclusions({ "httpclient5-*.jar", "jetty-client-*.jar" })
|
@ClassPathExclusions({ "httpclient5-*.jar", "jetty-client-*.jar" })
|
||||||
@Deprecated(since = "3.2.0")
|
@Deprecated(since = "3.2.0", forRemoval = true)
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
class ClientHttpRequestFactoriesOkHttp4Tests
|
class ClientHttpRequestFactoriesOkHttp4Tests
|
||||||
extends AbstractClientHttpRequestFactoriesTests<OkHttp3ClientHttpRequestFactory> {
|
extends AbstractClientHttpRequestFactoriesTests<OkHttp3ClientHttpRequestFactory> {
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||||
* @author Dave Syer
|
* @author Dave Syer
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
*/
|
*/
|
||||||
public class SampleAntApplicationIT {
|
class SampleAntApplicationIT {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void runJar() throws Exception {
|
void runJar() throws Exception {
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@ import static org.mockito.BDDMockito.then;
|
||||||
* Tests for {@link SampleDataJpaApplication} that use {@link SpyBean @SpyBean}.
|
* Tests for {@link SampleDataJpaApplication} that use {@link SpyBean @SpyBean}.
|
||||||
*
|
*
|
||||||
* @author Andy Wilkinson
|
* @author Andy Wilkinson
|
||||||
|
* @deprecated since 3.4.0 for removal in 3.6.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue