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