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.
@@ -30,7 +30,6 @@ import static org.mockito.Mockito.mock;
* Tests for {@link AuditListener}.
*
* @author Phillip Webb
* @author Yanming Zhou
*/
class AuditListenerTests {

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.never;
* Tests for {@link CachesEndpoint}.
*
* @author Stephane Nicoll
* @author Yanming Zhou
*/
class CachesEndpointTests {

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.mock;
*
* @author Eddú Meléndez
* @author Stephane Nicoll
* @author Yanming Zhou
*/
class CouchbaseHealthIndicatorTests {

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.
@@ -38,7 +38,6 @@ import static org.mockito.Mockito.spy;
* Tests for {@link ConversionServiceParameterValueMapper}.
*
* @author Phillip Webb
* @author Yanming Zhou
*/
class ConversionServiceParameterValueMapperTests {

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;
*
* @author Phillip Webb
* @author Stephane Nicoll
* @author Yanming Zhou
*/
@ExtendWith(MockitoExtension.class)
class CachingOperationInvokerAdvisorTests {

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.Mockito.times;
* @author Stephane Nicoll
* @author Christoph Dreis
* @author Phillip Webb
* @author Yanming Zhou
*/
class CachingOperationInvokerTests {

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.
@@ -46,7 +46,6 @@ import static org.mockito.Mockito.spy;
*
* @author Phillip Webb
* @author Stephane Nicoll
* @author Yanming Zhou
*/
class EndpointMBeanTests {

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.spy;
* Tests for {@link JacksonJmxOperationResponseMapper}
*
* @author Phillip Webb
* @author Yanming Zhou
*/
class JacksonJmxOperationResponseMapperTests {

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.
@@ -51,7 +51,6 @@ import static org.mockito.BDDMockito.willThrow;
*
* @author Stephane Nicoll
* @author Phillip Webb
* @author Yanming Zhou
*/
@ExtendWith(MockitoExtension.class)
class JmxEndpointExporterTests {

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.
@@ -48,7 +48,6 @@ import static org.mockito.Mockito.mock;
*
* @author Phillip Webb
* @author Stephane Nicoll
* @author Yanming Zhou
*/
@ExtendWith(MockitoExtension.class)
class ServletEndpointRegistrarTests {

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.BDDMockito.then;
* @param <T> the type of application context used by the tests
* @author Andy Wilkinson
* @author Scott Frederick
* @author Yanming Zhou
*/
public abstract class AbstractWebEndpointIntegrationTests<T extends ConfigurableApplicationContext & AnnotationConfigRegistry> {

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 InfluxDbHealthIndicator}.
*
* @author Eddú Meléndez
* @author Yanming Zhou
*/
class InfluxDbHealthIndicatorTests {

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 IntegrationGraphEndpoint}.
*
* @author Tim Ysewyn
* @author Yanming Zhou
*/
class IntegrationGraphEndpointTests {

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.times;
*
* @author Dave Syer
* @author Stephane Nicoll
* @author Yanming Zhou
*/
class DataSourceHealthIndicatorTests {

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.
@@ -39,7 +39,6 @@ import static org.mockito.Mockito.mock;
* Tests for {@link JmsHealthIndicator}.
*
* @author Stephane Nicoll
* @author Yanming Zhou
*/
class JmsHealthIndicatorTests {

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.mock;
* Tests for {@link LdapHealthIndicator}
*
* @author Eddú Meléndez
* @author Yanming Zhou
*/
class LdapHealthIndicatorTests {

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.mock;
* @author Andy Wilkinson
* @author HaiTao Zhang
* @author Madhura Bhave
* @author Yanming Zhou
*/
class LoggersEndpointTests {

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.
@@ -57,7 +57,6 @@ import static org.mockito.Mockito.mock;
* @author Andy Wilkinson
* @author HaiTao Zhang
* @author Madhura Bhave
* @author Yanming Zhou
*/
class LoggersEndpointWebIntegrationTests {

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.never;
* Tests for {@link PrometheusPushGatewayManager}.
*
* @author Phillip Webb
* @author Yanming Zhou
*/
@ExtendWith(MockitoExtension.class)
class PrometheusPushGatewayManagerTests {

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.
@@ -33,7 +33,6 @@ import static org.mockito.Mockito.mock;
* Tests for {@link MongoHealthIndicator}.
*
* @author Christian Dupuis
* @author Yanming Zhou
*/
class MongoHealthIndicatorTests {

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.
@@ -46,7 +46,6 @@ import static org.mockito.Mockito.times;
* @author Eric Spiegelberg
* @author Stephane Nicoll
* @author Michael Simons
* @author Yanming Zhou
*/
class Neo4jHealthIndicatorTests {

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.
@@ -46,7 +46,6 @@ import static org.mockito.Mockito.times;
*
* @author Michael J. Simons
* @author Stephane Nicoll
* @author Yanming Zhou
*/
class Neo4jReactiveHealthIndicatorTests {

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.
@@ -83,7 +83,6 @@ import static org.mockito.Mockito.mock;
*
* @author Vedran Pavic
* @author Stephane Nicoll
* @author Yanming Zhou
*/
class QuartzEndpointTests {

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;
* @author Christian Dupuis
* @author Richard Santana
* @author Stephane Nicoll
* @author Yanming Zhou
*/
class RedisHealthIndicatorTests {

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.mock;
* @author Nikolay Rybak
* @author Artsiom Yudovin
* @author Scott Frederick
* @author Yanming Zhou
*/
class RedisReactiveHealthIndicatorTests {

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.

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 SessionsEndpoint}.
*
* @author Vedran Pavic
* @author Yanming Zhou
*/
class SessionsEndpointTests {

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.times;
* @author Andy Wilkinson
* @author Markus Schuch
* @author Phillip Webb
* @author Yanming Zhou
*/
class SolrHealthIndicatorTests {