Merge branch '6.2.x'
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2025 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.
|
||||
@@ -44,8 +44,7 @@ import java.lang.annotation.Target;
|
||||
* {@code @Commit} and {@code @Rollback} on the same test method or on the
|
||||
* same test class is unsupported and may lead to unpredictable results.
|
||||
*
|
||||
* <p>As of Spring Framework 5.3, this annotation will be inherited from an
|
||||
* enclosing test class by default. See
|
||||
* <p>This annotation will be inherited from an enclosing test class by default. See
|
||||
* {@link org.springframework.test.context.NestedTestConfiguration @NestedTestConfiguration}
|
||||
* for details.
|
||||
*
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
* Copyright 2002-2025 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.
|
||||
@@ -76,8 +76,7 @@ import java.lang.annotation.Target;
|
||||
* <p>This annotation may be used as a <em>meta-annotation</em> to create custom
|
||||
* <em>composed annotations</em>.
|
||||
*
|
||||
* <p>As of Spring Framework 5.3, this annotation will be inherited from an
|
||||
* enclosing test class by default. See
|
||||
* <p>This annotation will be inherited from an enclosing test class by default. See
|
||||
* {@link org.springframework.test.context.NestedTestConfiguration @NestedTestConfiguration}
|
||||
* for details.
|
||||
*
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
* Copyright 2002-2025 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,8 +48,7 @@ import java.lang.annotation.Target;
|
||||
* custom <em>composed annotations</em>. Consult the source code for
|
||||
* {@link Commit @Commit} for a concrete example.
|
||||
*
|
||||
* <p>As of Spring Framework 5.3, this annotation will be inherited from an
|
||||
* enclosing test class by default. See
|
||||
* <p>This annotation will be inherited from an enclosing test class by default. See
|
||||
* {@link org.springframework.test.context.NestedTestConfiguration @NestedTestConfiguration}
|
||||
* for details.
|
||||
*
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
* Copyright 2002-2025 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,9 +34,8 @@ import org.springframework.core.annotation.AliasFor;
|
||||
* <p>This annotation may be used as a <em>meta-annotation</em> to create custom
|
||||
* <em>composed annotations</em>.
|
||||
*
|
||||
* <p>As of Spring Framework 5.3, this annotation will be inherited from an
|
||||
* enclosing test class by default. See
|
||||
* {@link NestedTestConfiguration @NestedTestConfiguration} for details.
|
||||
* <p>This annotation will be inherited from an enclosing test class by default.
|
||||
* See {@link NestedTestConfiguration @NestedTestConfiguration} for details.
|
||||
*
|
||||
* @author Sam Brannen
|
||||
* @since 3.1
|
||||
|
||||
@@ -34,9 +34,8 @@ import java.lang.annotation.Target;
|
||||
* present</em> on the current test class) will override any meta-present
|
||||
* declarations of {@code @BootstrapWith}.
|
||||
*
|
||||
* <p>As of Spring Framework 5.3, this annotation will be inherited from an
|
||||
* enclosing test class by default. See
|
||||
* {@link NestedTestConfiguration @NestedTestConfiguration} for details.
|
||||
* <p>This annotation will be inherited from an enclosing test class by default.
|
||||
* See {@link NestedTestConfiguration @NestedTestConfiguration} for details.
|
||||
*
|
||||
* @author Sam Brannen
|
||||
* @since 4.1
|
||||
|
||||
@@ -75,9 +75,8 @@ import org.springframework.core.annotation.AliasFor;
|
||||
* <p>This annotation may be used as a <em>meta-annotation</em> to create custom
|
||||
* <em>composed annotations</em>.
|
||||
*
|
||||
* <p>As of Spring Framework 5.3, this annotation will be inherited from an
|
||||
* enclosing test class by default. See
|
||||
* {@link NestedTestConfiguration @NestedTestConfiguration} for details.
|
||||
* <p>This annotation will be inherited from an enclosing test class by default.
|
||||
* See {@link NestedTestConfiguration @NestedTestConfiguration} for details.
|
||||
*
|
||||
* @author Sam Brannen
|
||||
* @since 2.5
|
||||
|
||||
@@ -205,9 +205,8 @@ import java.lang.annotation.Target;
|
||||
* <p>This annotation may be used as a <em>meta-annotation</em> to create custom
|
||||
* <em>composed annotations</em>.
|
||||
*
|
||||
* <p>As of Spring Framework 5.3, this annotation will be inherited from an
|
||||
* enclosing test class by default. See
|
||||
* {@link NestedTestConfiguration @NestedTestConfiguration} for details.
|
||||
* <p>This annotation will be inherited from an enclosing test class by default.
|
||||
* See {@link NestedTestConfiguration @NestedTestConfiguration} for details.
|
||||
*
|
||||
* @author Sam Brannen
|
||||
* @since 3.2.2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
* Copyright 2002-2025 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,9 +53,8 @@ import org.jspecify.annotations.Nullable;
|
||||
* {@link org.springframework.test.context.junit.jupiter.web.SpringJUnitWebConfig @SpringJUnitWebConfig}
|
||||
* or various test-related annotations from Spring Boot Test.
|
||||
*
|
||||
* <p>As of Spring Framework 5.3, this annotation will be inherited from an
|
||||
* enclosing test class by default. See
|
||||
* {@link NestedTestConfiguration @NestedTestConfiguration} for details.
|
||||
* <p>This annotation will be inherited from an enclosing test class by default.
|
||||
* See {@link NestedTestConfiguration @NestedTestConfiguration} for details.
|
||||
*
|
||||
* @author Sam Brannen
|
||||
* @since 5.2
|
||||
@@ -88,7 +87,7 @@ public @interface TestConstructor {
|
||||
* <p>May alternatively be configured via the
|
||||
* {@link org.springframework.core.SpringProperties SpringProperties}
|
||||
* mechanism.
|
||||
* <p>As of Spring Framework 5.3, this property may also be configured as a
|
||||
* <p>This property may also be configured as a
|
||||
* <a href="https://junit.org/junit5/docs/current/user-guide/#running-tests-config-params">JUnit
|
||||
* Platform configuration parameter</a>.
|
||||
* @see #autowireMode
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
* Copyright 2002-2025 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,8 +36,8 @@ import org.springframework.core.annotation.AliasFor;
|
||||
* mechanism described in {@link TestExecutionListener}.
|
||||
*
|
||||
* <p>This annotation may be used as a <em>meta-annotation</em> to create custom
|
||||
* <em>composed annotations</em>. As of Spring Framework 5.3, this annotation will
|
||||
* be inherited from an enclosing test class by default. See
|
||||
* <em>composed annotations</em>. In addition, this annotation will be inherited
|
||||
* from an enclosing test class by default. See
|
||||
* {@link NestedTestConfiguration @NestedTestConfiguration} for details.
|
||||
*
|
||||
* <h3>Switching to default {@code TestExecutionListener} implementations</h3>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
* Copyright 2002-2025 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.
|
||||
@@ -80,9 +80,8 @@ import org.springframework.core.io.support.PropertySourceFactory;
|
||||
* of both annotations can lead to ambiguity during the attribute resolution
|
||||
* process. Note, however, that ambiguity can be avoided via explicit annotation
|
||||
* attribute overrides using {@link AliasFor @AliasFor}.</li>
|
||||
* <li>As of Spring Framework 5.3, this annotation will be inherited from an
|
||||
* enclosing test class by default. See
|
||||
* {@link NestedTestConfiguration @NestedTestConfiguration} for details.</li>
|
||||
* <li>This annotation will be inherited from an enclosing test class by default.
|
||||
* See {@link NestedTestConfiguration @NestedTestConfiguration} for details.</li>
|
||||
* </ul>
|
||||
*
|
||||
* @author Sam Brannen
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2020 the original author or authors.
|
||||
* Copyright 2002-2025 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,9 +31,8 @@ import java.lang.annotation.Target;
|
||||
* completely optional since {@code @TestPropertySource} is a
|
||||
* {@linkplain java.lang.annotation.Repeatable repeatable} annotation.
|
||||
*
|
||||
* <p>As of Spring Framework 5.3, this annotation will be inherited from an
|
||||
* enclosing test class by default. See
|
||||
* {@link NestedTestConfiguration @NestedTestConfiguration} for details.
|
||||
* <p>This annotation will be inherited from an enclosing test class by default.
|
||||
* See {@link NestedTestConfiguration @NestedTestConfiguration} for details.
|
||||
*
|
||||
* @author Anatoliy Korovin
|
||||
* @author Sam Brannen
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2025 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.
|
||||
@@ -54,8 +54,7 @@ import java.lang.annotation.Target;
|
||||
* {@code ""}, <code>{}</code>, or {@code DEFAULT}. Explicit local configuration
|
||||
* therefore <em>overrides</em> global configuration.
|
||||
*
|
||||
* <p>As of Spring Framework 5.3, this annotation will be inherited from an
|
||||
* enclosing test class by default. See
|
||||
* <p>This annotation will be inherited from an enclosing test class by default. See
|
||||
* {@link org.springframework.test.context.NestedTestConfiguration @NestedTestConfiguration}
|
||||
* for details.
|
||||
*
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2025 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,8 +34,7 @@ import java.lang.annotation.Target;
|
||||
* <p>This annotation may be used as a <em>meta-annotation</em> to create custom
|
||||
* <em>composed annotations</em>.
|
||||
*
|
||||
* <p>As of Spring Framework 5.3, this annotation will be inherited from an
|
||||
* enclosing test class by default. See
|
||||
* <p>This annotation will be inherited from an enclosing test class by default. See
|
||||
* {@link org.springframework.test.context.NestedTestConfiguration @NestedTestConfiguration}
|
||||
* for details.
|
||||
*
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2025 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.
|
||||
@@ -37,8 +37,7 @@ import java.lang.annotation.Target;
|
||||
* <p>This annotation may be used as a <em>meta-annotation</em> to create custom
|
||||
* <em>composed annotations</em> with attribute overrides.
|
||||
*
|
||||
* <p>As of Spring Framework 5.3, this annotation will be inherited from an
|
||||
* enclosing test class by default. See
|
||||
* <p>This annotation will be inherited from an enclosing test class by default. See
|
||||
* {@link org.springframework.test.context.NestedTestConfiguration @NestedTestConfiguration}
|
||||
* for details.
|
||||
*
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
* Copyright 2002-2025 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.
|
||||
@@ -147,9 +147,8 @@ public class SpringExtension implements BeforeAllCallback, AfterAllCallback, Tes
|
||||
|
||||
/**
|
||||
* Delegates to {@link TestContextManager#prepareTestInstance}.
|
||||
* <p>As of Spring Framework 5.3.2, this method also validates that test
|
||||
* methods and test lifecycle methods are not annotated with
|
||||
* {@link Autowired @Autowired}.
|
||||
* <p>This method also validates that test methods and test lifecycle methods
|
||||
* are not annotated with {@link Autowired @Autowired}.
|
||||
*/
|
||||
@Override
|
||||
public void postProcessTestInstance(Object testInstance, ExtensionContext context) throws Exception {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2023 the original author or authors.
|
||||
* Copyright 2002-2025 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,8 +36,7 @@ import org.springframework.test.context.ContextLoader;
|
||||
* {@link ContextConfiguration @ContextConfiguration} from the <em>Spring TestContext
|
||||
* Framework</em>.
|
||||
*
|
||||
* <p>As of Spring Framework 5.3, this annotation will effectively be inherited
|
||||
* from an enclosing test class by default. See
|
||||
* <p>This annotation will be inherited from an enclosing test class by default. See
|
||||
* {@link org.springframework.test.context.NestedTestConfiguration @NestedTestConfiguration}
|
||||
* for details.
|
||||
*
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2023 the original author or authors.
|
||||
* Copyright 2002-2025 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,8 +39,7 @@ import org.springframework.test.context.web.WebAppConfiguration;
|
||||
* {@link WebAppConfiguration @WebAppConfiguration} from the <em>Spring TestContext
|
||||
* Framework</em>.
|
||||
*
|
||||
* <p>As of Spring Framework 5.3, this annotation will effectively be inherited
|
||||
* from an enclosing test class by default. See
|
||||
* <p>This annotation will be inherited from an enclosing test class by default. See
|
||||
* {@link org.springframework.test.context.NestedTestConfiguration @NestedTestConfiguration}
|
||||
* for details.
|
||||
*
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
* Copyright 2002-2025 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,8 +41,7 @@ import java.lang.annotation.Target;
|
||||
* <p>This annotation may be used as a <em>meta-annotation</em> to create custom
|
||||
* <em>composed annotations</em>.
|
||||
*
|
||||
* <p>As of Spring Framework 5.3, this annotation will be inherited from an
|
||||
* enclosing test class by default. See
|
||||
* <p>This annotation will be inherited from an enclosing test class by default. See
|
||||
* {@link org.springframework.test.context.NestedTestConfiguration @NestedTestConfiguration}
|
||||
* for details.
|
||||
*
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2023 the original author or authors.
|
||||
* Copyright 2002-2025 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,9 +28,8 @@ import org.springframework.util.Assert;
|
||||
* Simple utility for finding available TCP ports on {@code localhost} for use in
|
||||
* integration testing scenarios.
|
||||
*
|
||||
* <p>This is a limited form of {@code org.springframework.util.SocketUtils}, which
|
||||
* has been deprecated since Spring Framework 5.3.16 and removed in Spring
|
||||
* Framework 6.0.
|
||||
* <p>This is a limited form of the original {@code org.springframework.util.SocketUtils}
|
||||
* class which was removed in Spring Framework 6.0.
|
||||
*
|
||||
* <p>{@code TestSocketUtils} can be used in integration tests which start an
|
||||
* external server on an available random port. However, these utilities make no
|
||||
|
||||
Reference in New Issue
Block a user