Polish "Enforce use of BDDMockito"

See gh-29178
This commit is contained in:
Stephane Nicoll
2022-02-01 09:47:21 +01:00
parent b49418aaaf
commit 7f17f819a6
193 changed files with 208 additions and 381 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -45,7 +45,6 @@ import static org.mockito.Mockito.reset;
* @author Phillip Webb
* @author Michael Stummvoll
* @author Michael Simons
* @author Yanming Zhou
*/
@ExtendWith({ MockitoExtension.class, OutputCaptureExtension.class })
class BannerTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -40,7 +40,6 @@ import static org.mockito.BDDMockito.then;
*
* @author Phillip Webb
* @author Madhura Bhave
* @author Yanming Zhou
*/
@ExtendWith(MockitoExtension.class)
class DefaultPropertiesPropertySourceTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -29,7 +29,6 @@ import static org.mockito.Mockito.mock;
*
* @author Henri Tremblay
* @author Andy Wilkinson
* @author Yanming Zhou
*/
class SpringBootExceptionHandlerTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2020 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -36,7 +36,6 @@ import static org.mockito.Mockito.mock;
*
* @author Dave Syer
* @author Andy Wilkinson
* @author Yanming Zhou
*/
class StartupInfoLoggerTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -35,7 +35,6 @@ import static org.mockito.Mockito.mock;
* Tests for {@link AvailabilityChangeEvent}.
*
* @author Phillip Webb
* @author Yanming Zhou
*/
class AvailabilityChangeEventTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -48,7 +48,6 @@ import static org.mockito.Mockito.spy;
* Tests for {@link SpringApplicationBuilder}.
*
* @author Dave Syer
* @author Yanming Zhou
*/
class SpringApplicationBuilderTests {

View File

@@ -55,7 +55,6 @@ import static org.mockito.Mockito.mock;
*
* @author Phillip Webb
* @author Madhura Bhave
* @author Yanming Zhou
*/
@ExtendWith(MockitoExtension.class)
class ConfigDataEnvironmentContributorsTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -41,7 +41,6 @@ import static org.mockito.BDDMockito.then;
import static org.mockito.BDDMockito.willReturn;
import static org.mockito.BDDMockito.willThrow;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verifyNoInteractions;
/**
* Tests for {@link ConfigDataEnvironmentPostProcessor}.
@@ -49,7 +48,6 @@ import static org.mockito.Mockito.verifyNoInteractions;
* @author Phillip Webb
* @author Madhura Bhave
* @author Nguyen Bao Sach
* @author Yanming Zhou
*/
@ExtendWith(MockitoExtension.class)
class ConfigDataEnvironmentPostProcessorTests {
@@ -125,7 +123,7 @@ class ConfigDataEnvironmentPostProcessorTests {
.getConfigDataEnvironment(any(), any(), any());
willReturn(legacyListener).given(this.postProcessor).getLegacyListener();
this.postProcessor.postProcessEnvironment(this.environment, this.application);
verifyNoInteractions(this.configDataEnvironment);
then(this.configDataEnvironment).shouldHaveNoInteractions();
then(legacyListener).should().addPropertySources(eq(this.environment), any(DefaultResourceLoader.class));
assertThat(this.environment.getActiveProfiles()).isEmpty();
}
@@ -139,7 +137,7 @@ class ConfigDataEnvironmentPostProcessorTests {
.getConfigDataEnvironment(any(), any(), any());
willReturn(legacyListener).given(this.postProcessor).getLegacyListener();
this.postProcessor.postProcessEnvironment(this.environment, this.application);
verifyNoInteractions(this.configDataEnvironment);
then(this.configDataEnvironment).shouldHaveNoInteractions();
then(legacyListener).should().addPropertySources(eq(this.environment), any(DefaultResourceLoader.class));
assertThat(this.environment.getActiveProfiles()).containsExactly("dev");
}

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -38,7 +38,6 @@ import static org.mockito.Mockito.mock;
*
* @author Phillip Webb
* @author Madhura Bhave
* @author Yanming Zhou
*/
class InvalidConfigDataPropertyExceptionTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -120,7 +120,6 @@ import static org.mockito.Mockito.mock;
* @author Stephane Nicoll
* @author Madhura Bhave
* @author Vladislav Kisel
* @author Yanming Zhou
*/
@ExtendWith(OutputCaptureExtension.class)
class ConfigurationPropertiesTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -36,7 +36,6 @@ import static org.mockito.Mockito.spy;
*
* @author Madhura Bhave
* @author Stephane Nicoll
* @author Yanming Zhou
*/
class EnableConfigurationPropertiesRegistrarTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -48,7 +48,6 @@ import static org.mockito.BDDMockito.then;
*
* @author Phillip Webb
* @author Andy Wilkinson
* @author Yanming Zhou
*/
@ExtendWith(MockitoExtension.class)
class BindConverterTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -39,7 +39,6 @@ import static org.mockito.BDDMockito.then;
*
* @author Phillip Webb
* @author Madhura Bhave
* @author Yanming Zhou
*/
@ExtendWith(MockitoExtension.class)
class BindResultTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -38,7 +38,6 @@ import static org.mockito.Mockito.never;
* Tests for {@link BoundPropertiesTrackingBindHandler}.
*
* @author Madhura Bhave
* @author Yanming Zhou
*/
@ExtendWith(MockitoExtension.class)
class BoundPropertiesTrackingBindHandlerTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -32,7 +32,6 @@ import static org.mockito.Mockito.withSettings;
* Tests for {@link ConfigurationPropertySourcesCaching}.
*
* @author Phillip Webb
* @author Yanming Zhou
*/
class ConfigurationPropertySourcesCachingTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -43,7 +43,6 @@ import static org.mockito.Mockito.mock;
* Tests for {@link ApplicationConversionService}.
*
* @author Phillip Webb
* @author Yanming Zhou
*/
class ApplicationConversionServiceTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -39,7 +39,6 @@ import static org.mockito.Mockito.times;
*
* @author Andy Wilkinson
* @author Stephane Nicoll
* @author Yanming Zhou
*/
class FailureAnalyzersTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -42,7 +42,6 @@ import static org.mockito.Mockito.spy;
* Tests for {@link EnvironmentPostProcessorApplicationListener}.
*
* @author Phillip Webb
* @author Yanming Zhou
*/
class EnvironmentPostProcessorApplicationListenerTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -40,7 +40,6 @@ import static org.mockito.Mockito.mock;
* Tests for {@link DataSourceUnwrapper}.
*
* @author Stephane Nicoll
* @author Yanming Zhou
*/
class DataSourceUnwrapperTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -32,7 +32,6 @@ import static org.mockito.Mockito.spy;
*
* @author Dave Syer
* @author Stephane Nicoll
* @author Yanming Zhou
*/
class JacksonJsonParserTests extends AbstractJsonParserTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -19,9 +19,9 @@ package org.springframework.boot.jta.atomikos;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.BDDMockito.then;
import static org.mockito.Mockito.never;
import static org.mockito.Mockito.spy;
import static org.mockito.Mockito.verify;
/**
* Tests for {@link AtomikosConnectionFactoryBean}.
@@ -36,10 +36,10 @@ class AtomikosConnectionFactoryBeanTests {
bean.setBeanName("bean");
bean.afterPropertiesSet();
assertThat(bean.getUniqueResourceName()).isEqualTo("bean");
verify(bean).init();
verify(bean, never()).close();
then(bean).should().init();
then(bean).should(never()).close();
bean.destroy();
verify(bean).close();
then(bean).should().close();
}
static class MockAtomikosConnectionFactoryBean extends AtomikosConnectionFactoryBean {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -19,9 +19,9 @@ package org.springframework.boot.jta.atomikos;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.BDDMockito.then;
import static org.mockito.Mockito.never;
import static org.mockito.Mockito.spy;
import static org.mockito.Mockito.verify;
/**
* Tests for {@link AtomikosDataSourceBean}.
@@ -36,10 +36,10 @@ class AtomikosDataSourceBeanTests {
bean.setBeanName("bean");
bean.afterPropertiesSet();
assertThat(bean.getUniqueResourceName()).isEqualTo("bean");
verify(bean).init();
verify(bean, never()).close();
then(bean).should().init();
then(bean).should(never()).close();
bean.destroy();
verify(bean).close();
then(bean).should().close();
}
static class MockAtomikosDataSourceBean extends AtomikosDataSourceBean {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -30,7 +30,6 @@ import static org.mockito.Mockito.mock;
* Tests for {@link DeferredLog}.
*
* @author Phillip Webb
* @author Yanming Zhou
*/
class DeferredLogTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -28,7 +28,6 @@ import static org.mockito.Mockito.mock;
* Tests for {@link DeferredLogs}.
*
* @author Phillip Webb
* @author Yanming Zhou
*/
class DeferredLogsTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -30,7 +30,6 @@ import static org.mockito.Mockito.mock;
* Tests for {@link DelegatingLoggingSystemFactory}.
*
* @author Phillip Webb
* @author Yanming Zhou
*/
class DelegatingLoggingSystemFactoryTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -69,7 +69,6 @@ import static org.mockito.Mockito.times;
* @author Andy Wilkinson
* @author Ben Hale
* @author Madhura Bhave
* @author Yanming Zhou
*/
@ExtendWith(OutputCaptureExtension.class)
class Log4J2LoggingSystemTests extends AbstractLoggingSystemTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -82,7 +82,6 @@ import static org.mockito.Mockito.times;
* @author Vedran Pavic
* @author Robert Thornton
* @author Eddú Meléndez
* @author Yanming Zhou
*/
@ExtendWith(OutputCaptureExtension.class)
class LogbackLoggingSystemTests extends AbstractLoggingSystemTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -41,7 +41,6 @@ import static org.mockito.Mockito.mock;
* Tests for {@link SpringProfileAction}.
*
* @author Andy Wilkinson
* @author Yanming Zhou
*/
class SpringProfileActionTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2020 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -34,7 +34,6 @@ import static org.mockito.Mockito.mock;
* Tests for {@link OriginTrackedResource}.
*
* @author Phillip Webb
* @author Yanming Zhou
*/
class OriginTrackedResourceTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -36,7 +36,6 @@ import static org.mockito.Mockito.mock;
*
* @author Spencer Gibb
* @author Andy Wilkinson
* @author Yanming Zhou
*/
class RSocketPortInfoApplicationContextInitializerTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -62,7 +62,6 @@ import static org.mockito.Mockito.reset;
*
* @author Andy Wilkinson
* @author Phillip Webb
* @author Yanming Zhou
*/
class DatabaseInitializationDependencyConfigurerTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -36,7 +36,6 @@ import static org.mockito.Mockito.spy;
*
* @author Stephane Nicoll
* @author Filip Hrisafov
* @author Yanming Zhou
*/
class TaskExecutorBuilderTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -34,7 +34,6 @@ import static org.mockito.Mockito.spy;
* Tests for {@link TaskSchedulerBuilder}.
*
* @author Stephane Nicoll
* @author Yanming Zhou
*/
class TaskSchedulerBuilderTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -32,7 +32,6 @@ import static org.mockito.Mockito.times;
* Tests for {@link ConcurrentReferenceCachingMetadataReaderFactory}.
*
* @author Phillip Webb
* @author Yanming Zhou
*/
class ConcurrentReferenceCachingMetadataReaderFactoryTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -40,7 +40,6 @@ import static org.mockito.Mockito.mock;
* Tests for {@link LambdaSafe}.
*
* @author Phillip Webb
* @author Yanming Zhou
*/
class LambdaSafeTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -73,7 +73,6 @@ import static org.springframework.test.web.client.response.MockRestResponseCreat
* @author Dmytro Nosan
* @author Kevin Strijbos
* @author Ilya Lukyanovich
* @author Yanming Zhou
*/
@ExtendWith(MockitoExtension.class)
class RestTemplateBuilderTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -41,7 +41,6 @@ import static org.mockito.BDDMockito.then;
* Tests for {@link RootUriTemplateHandler}.
*
* @author Phillip Webb
* @author Yanming Zhou
*/
@ExtendWith(MockitoExtension.class)
class RootUriTemplateHandlerTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -65,7 +65,6 @@ import static org.mockito.Mockito.mock;
* @author Brian Clozel
* @author Madhura Bhave
* @author HaiTao Zhang
* @author Yanming Zhou
*/
class TomcatReactiveWebServerFactoryTests extends AbstractReactiveWebServerFactoryTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2020 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -104,7 +104,6 @@ import static org.mockito.Mockito.mock;
* @author Phillip Webb
* @author Dave Syer
* @author Stephane Nicoll
* @author Yanming Zhou
*/
class TomcatServletWebServerFactoryTests extends AbstractServletWebServerFactoryTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -47,7 +47,6 @@ import static org.mockito.BDDMockito.then;
* Tests for {@link ReactiveWebServerApplicationContext}.
*
* @author Andy Wilkinson
* @author Yanming Zhou
*/
class ReactiveWebServerApplicationContextTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2020 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -45,7 +45,6 @@ import static org.mockito.Mockito.never;
* Abstract base for {@link AbstractFilterRegistrationBean} tests.
*
* @author Phillip Webb
* @author Yanming Zhou
*/
@ExtendWith(MockitoExtension.class)
abstract class AbstractFilterRegistrationBeanTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -42,7 +42,6 @@ import static org.mockito.BDDMockito.then;
* Tests for {@link FilterRegistrationBean}.
*
* @author Phillip Webb
* @author Yanming Zhou
*/
class FilterRegistrationBeanTests extends AbstractFilterRegistrationBeanTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2020 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -35,7 +35,6 @@ import static org.mockito.Mockito.never;
* Tests for {@link ServletListenerRegistrationBean}.
*
* @author Dave Syer
* @author Yanming Zhou
*/
@ExtendWith(MockitoExtension.class)
class ServletListenerRegistrationBeanTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -45,7 +45,6 @@ import static org.mockito.Mockito.never;
* Tests for {@link ServletRegistrationBean}.
*
* @author Phillip Webb
* @author Yanming Zhou
*/
@ExtendWith(MockitoExtension.class)
class ServletRegistrationBeanTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -45,7 +45,6 @@ import static org.mockito.BDDMockito.then;
* Tests for {@link AnnotationConfigServletWebServerApplicationContext}.
*
* @author Phillip Webb
* @author Yanming Zhou
*/
class AnnotationConfigServletWebServerApplicationContextTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -92,7 +92,6 @@ import static org.mockito.Mockito.withSettings;
*
* @author Phillip Webb
* @author Stephane Nicoll
* @author Yanming Zhou
*/
@ExtendWith({ OutputCaptureExtension.class, MockitoExtension.class })
class ServletWebServerApplicationContextTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2019 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -29,7 +29,6 @@ import static org.mockito.BDDMockito.then;
* Tests for {@link XmlServletWebServerApplicationContext}.
*
* @author Phillip Webb
* @author Yanming Zhou
*/
class XmlServletWebServerApplicationContextTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -164,7 +164,6 @@ import static org.mockito.Mockito.mock;
* @author Greg Turnquist
* @author Andy Wilkinson
* @author Raja Kolli
* @author Yanming Zhou
*/
@ExtendWith(OutputCaptureExtension.class)
public abstract class AbstractServletWebServerFactoryTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -61,7 +61,6 @@ import static org.mockito.Mockito.never;
*
* @author Dave Syer
* @author Andy Wilkinson
* @author Yanming Zhou
*/
@ExtendWith(OutputCaptureExtension.class)
class ErrorPageFilterTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2019 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -31,7 +31,6 @@ import static org.mockito.Mockito.never;
* Tests for {@link ServletContextApplicationContextInitializer}.
*
* @author Andy Wilkinson
* @author Yanming Zhou
*/
class ServletContextApplicationContextInitializerTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -65,7 +65,6 @@ import static org.mockito.Mockito.mock;
*
* @author Phillip Webb
* @author Andy Wilkinson
* @author Yanming Zhou
*/
@ExtendWith(OutputCaptureExtension.class)
class SpringBootServletInitializerTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -53,7 +53,6 @@ import static org.mockito.Mockito.spy;
*
* @author Stephane Nicoll
* @author Dmytro Nosan
* @author Yanming Zhou
*/
@ExtendWith(MockitoExtension.class)
class WebServiceTemplateBuilderTests {