Merge branch '3.1.x'

Closes gh-37406
This commit is contained in:
Andy Wilkinson 2023-09-15 11:15:03 +01:00
commit a0435920ce
19 changed files with 10 additions and 33 deletions

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2020 the original author or authors. * Copyright 2012-2023 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -23,7 +23,6 @@ import java.net.URISyntaxException;
* Provides access to build output locations in a build system and IDE agnostic manner. * Provides access to build output locations in a build system and IDE agnostic manner.
* *
* @author Andy Wilkinson * @author Andy Wilkinson
* @since 2.2.0
*/ */
public class BuildOutput { public class BuildOutput {

View File

@ -28,7 +28,6 @@ import org.springframework.util.ReflectionUtils;
* AssertJ {@link Assert} for {@link SimpleAsyncTaskExecutor}. * AssertJ {@link Assert} for {@link SimpleAsyncTaskExecutor}.
* *
* @author Moritz Halbritter * @author Moritz Halbritter
* @since 3.2.0
*/ */
public final class SimpleAsyncTaskExecutorAssert public final class SimpleAsyncTaskExecutorAssert
extends AbstractAssert<SimpleAsyncTaskExecutorAssert, SimpleAsyncTaskExecutor> { extends AbstractAssert<SimpleAsyncTaskExecutorAssert, SimpleAsyncTaskExecutor> {

View File

@ -31,7 +31,6 @@ import org.springframework.core.annotation.AliasFor;
* Annotation used to exclude entries from the classpath. * Annotation used to exclude entries from the classpath.
* *
* @author Andy Wilkinson * @author Andy Wilkinson
* @since 1.5.0
*/ */
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.TYPE, ElementType.METHOD }) @Target({ ElementType.TYPE, ElementType.METHOD })
@ -57,7 +56,6 @@ public @interface ClassPathExclusions {
* For example, to exclude Hibernate Validator from the classpath, * For example, to exclude Hibernate Validator from the classpath,
* {@code "hibernate-validator-*.jar"} can be used. * {@code "hibernate-validator-*.jar"} can be used.
* @return the exclusion patterns * @return the exclusion patterns
* @since 3.2.0
*/ */
@AliasFor("value") @AliasFor("value")
String[] files() default {}; String[] files() default {};
@ -65,7 +63,6 @@ public @interface ClassPathExclusions {
/** /**
* One or more packages that should be excluded from the classpath. * One or more packages that should be excluded from the classpath.
* @return the excluded packages * @return the excluded packages
* @since 3.2.0
*/ */
String[] packages() default {}; String[] packages() default {};

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2022 the original author or authors. * Copyright 2012-2023 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -28,7 +28,6 @@ import org.junit.jupiter.api.extension.ExtendWith;
* Annotation used to override entries on the classpath. * Annotation used to override entries on the classpath.
* *
* @author Andy Wilkinson * @author Andy Wilkinson
* @since 1.5.0
*/ */
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.TYPE, ElementType.METHOD }) @Target({ ElementType.TYPE, ElementType.METHOD })

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2022 the original author or authors. * Copyright 2012-2023 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -30,7 +30,6 @@ import org.junit.jupiter.api.extension.ExtendWith;
* {@link ClassPathOverrides} are needed, but just a copy of the classpath. * {@link ClassPathOverrides} are needed, but just a copy of the classpath.
* *
* @author Christoph Dreis * @author Christoph Dreis
* @since 2.4.0
*/ */
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.TYPE, ElementType.METHOD }) @Target({ ElementType.TYPE, ElementType.METHOD })

View File

@ -29,7 +29,6 @@ import org.junit.jupiter.api.extension.ExtendWith;
* architecture check. * architecture check.
* *
* @author Moritz Halbritter * @author Moritz Halbritter
* @since 2.5.11
*/ */
@Target({ ElementType.TYPE, ElementType.METHOD }) @Target({ ElementType.TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)

View File

@ -29,7 +29,6 @@ import org.junit.jupiter.api.extension.ExtendWith;
* Disables test execution if a process is unavailable. * Disables test execution if a process is unavailable.
* *
* @author Phillip Webb * @author Phillip Webb
* @since 3.1.0
*/ */
@Target({ ElementType.TYPE, ElementType.METHOD }) @Target({ ElementType.TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)

View File

@ -28,7 +28,6 @@ import org.junit.jupiter.api.extension.ExtendWith;
* Repeatable container for {@link DisabledIfProcessUnavailable}. * Repeatable container for {@link DisabledIfProcessUnavailable}.
* *
* @author Phillip Webb * @author Phillip Webb
* @since 3.1.0
*/ */
@Target({ ElementType.TYPE, ElementType.METHOD }) @Target({ ElementType.TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2019 the original author or authors. * Copyright 2012-2023 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -23,7 +23,6 @@ package org.springframework.boot.testsupport.system;
* @author Madhura Bhave * @author Madhura Bhave
* @author Phillip Webb * @author Phillip Webb
* @author Andy Wilkinson * @author Andy Wilkinson
* @since 2.2.0
*/ */
public interface CapturedOutput extends CharSequence { public interface CapturedOutput extends CharSequence {

View File

@ -62,7 +62,6 @@ import org.junit.jupiter.api.extension.ParameterResolver;
* @author Phillip Webb * @author Phillip Webb
* @author Andy Wilkinson * @author Andy Wilkinson
* @author Sam Brannen * @author Sam Brannen
* @since 2.2.0
* @see CapturedOutput * @see CapturedOutput
*/ */
public class OutputCaptureExtension public class OutputCaptureExtension

View File

@ -22,7 +22,6 @@ import org.testcontainers.containers.GenericContainer;
* A {@link GenericContainer} for ActiveMQ. * A {@link GenericContainer} for ActiveMQ.
* *
* @author Stephane Nicoll * @author Stephane Nicoll
* @since 3.1.0
*/ */
public class ActiveMQContainer extends GenericContainer<ActiveMQContainer> { public class ActiveMQContainer extends GenericContainer<ActiveMQContainer> {

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2021 the original author or authors. * Copyright 2012-2023 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -23,7 +23,6 @@ import java.time.Duration;
* heavily contended environments such as CI. * heavily contended environments such as CI.
* *
* @author Andy Wilkinson * @author Andy Wilkinson
* @since 2.4.10
*/ */
public class CassandraContainer extends org.testcontainers.containers.CassandraContainer<CassandraContainer> { public class CassandraContainer extends org.testcontainers.containers.CassandraContainer<CassandraContainer> {

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2020 the original author or authors. * Copyright 2012-2023 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -29,7 +29,6 @@ import org.junit.jupiter.api.extension.ExtendWith;
* *
* @author Andy Wilkinson * @author Andy Wilkinson
* @author Phillip Webb * @author Phillip Webb
* @since 2.3.0
*/ */
@Target({ ElementType.TYPE, ElementType.METHOD }) @Target({ ElementType.TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)

View File

@ -25,7 +25,6 @@ import org.testcontainers.utility.DockerImageName;
* @author Eddú Meléndez * @author Eddú Meléndez
* @author Moritz Halbritter * @author Moritz Halbritter
* @author Chris Bono * @author Chris Bono
* @since 2.3.6
*/ */
public final class DockerImageNames { public final class DockerImageNames {
@ -219,7 +218,6 @@ public final class DockerImageNames {
/** /**
* Return a {@link DockerImageName} suitable for running a Docker registry. * Return a {@link DockerImageName} suitable for running a Docker registry.
* @return a docker image name for running a registry * @return a docker image name for running a registry
* @since 2.4.0
*/ */
public static DockerImageName registry() { public static DockerImageName registry() {
return DockerImageName.parse("registry").withTag(REGISTRY_VERSION); return DockerImageName.parse("registry").withTag(REGISTRY_VERSION);
@ -228,7 +226,6 @@ public final class DockerImageNames {
/** /**
* Return a {@link DockerImageName} suitable for running Zipkin. * Return a {@link DockerImageName} suitable for running Zipkin.
* @return a docker image name for running Zipkin * @return a docker image name for running Zipkin
* @since 3.1.0
*/ */
public static DockerImageName zipkin() { public static DockerImageName zipkin() {
return DockerImageName.parse("openzipkin/zipkin").withTag(ZIPKIN_VERSION); return DockerImageName.parse("openzipkin/zipkin").withTag(ZIPKIN_VERSION);

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2020 the original author or authors. * Copyright 2012-2023 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -23,7 +23,6 @@ import org.testcontainers.containers.GenericContainer;
* *
* @author Andy Wilkinson * @author Andy Wilkinson
* @author Madhura Bhave * @author Madhura Bhave
* @since 2.0.0
*/ */
public class RedisContainer extends GenericContainer<RedisContainer> { public class RedisContainer extends GenericContainer<RedisContainer> {

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2022 the original author or authors. * Copyright 2012-2023 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -28,7 +28,6 @@ import org.junit.jupiter.api.extension.ExtendWith;
* Indicates that a test pollutes URL factories. * Indicates that a test pollutes URL factories.
* *
* @author Phillip Webb * @author Phillip Webb
* @since 2.6.14
*/ */
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.TYPE, ElementType.METHOD }) @Target({ ElementType.TYPE, ElementType.METHOD })

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2021 the original author or authors. * Copyright 2012-2023 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -29,7 +29,6 @@ import jakarta.servlet.ServletResponse;
* Simple example Filter used for testing. * Simple example Filter used for testing.
* *
* @author Phillip Webb * @author Phillip Webb
* @since 2.0.0
*/ */
public class ExampleFilter implements Filter { public class ExampleFilter implements Filter {

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2021 the original author or authors. * Copyright 2012-2023 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -30,7 +30,6 @@ import org.springframework.util.StreamUtils;
* Simple example Servlet used for testing. * Simple example Servlet used for testing.
* *
* @author Phillip Webb * @author Phillip Webb
* @since 2.0.0
*/ */
@SuppressWarnings("serial") @SuppressWarnings("serial")
public class ExampleServlet extends GenericServlet { public class ExampleServlet extends GenericServlet {

View File

@ -46,7 +46,6 @@ import static org.mockito.Mockito.mock;
* *
* @author Phillip Webb * @author Phillip Webb
* @author Andy Wilkinson * @author Andy Wilkinson
* @since 2.0.0
*/ */
public abstract class MockServletWebServer { public abstract class MockServletWebServer {