diff --git a/spring-test/src/main/java/org/springframework/test/annotation/DirtiesContext.java b/spring-test/src/main/java/org/springframework/test/annotation/DirtiesContext.java index 4457b908ae..78f884b0b9 100644 --- a/spring-test/src/main/java/org/springframework/test/annotation/DirtiesContext.java +++ b/spring-test/src/main/java/org/springframework/test/annotation/DirtiesContext.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2016 the original author or authors. + * Copyright 2002-2019 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,8 +40,8 @@ import java.lang.annotation.Target; * after any such annotated method as well as before or after the current test * class, depending on the configured {@link #methodMode} and {@link #classMode}. * - *
As of Spring Framework 4.0, this annotation may be used as a - * meta-annotation to create custom composed annotations. + *
This annotation may be used as a meta-annotation to create custom + * composed annotations. * *
As of Spring Framework 4.0, this annotation may be used as a - * meta-annotation to create custom composed annotations. + *
This annotation may be used as a meta-annotation to create custom + * composed annotations. * * @author Rod Johnson * @author Sam Brannen diff --git a/spring-test/src/main/java/org/springframework/test/annotation/ProfileValueSourceConfiguration.java b/spring-test/src/main/java/org/springframework/test/annotation/ProfileValueSourceConfiguration.java index 832960385e..4197550f26 100644 --- a/spring-test/src/main/java/org/springframework/test/annotation/ProfileValueSourceConfiguration.java +++ b/spring-test/src/main/java/org/springframework/test/annotation/ProfileValueSourceConfiguration.java @@ -29,8 +29,8 @@ import java.lang.annotation.Target; * to use when retrieving profile values configured via * {@link IfProfileValue @IfProfileValue}. * - *
As of Spring Framework 4.0, this annotation may be used as a - * meta-annotation to create custom composed annotations. + *
This annotation may be used as a meta-annotation to create custom + * composed annotations. * * @author Sam Brannen * @since 2.5 diff --git a/spring-test/src/main/java/org/springframework/test/annotation/Repeat.java b/spring-test/src/main/java/org/springframework/test/annotation/Repeat.java index c29753e79f..e81bb9c856 100644 --- a/spring-test/src/main/java/org/springframework/test/annotation/Repeat.java +++ b/spring-test/src/main/java/org/springframework/test/annotation/Repeat.java @@ -30,8 +30,8 @@ import java.lang.annotation.Target; * test method itself as well as any set up or tear down of * the test fixture. * - *
As of Spring Framework 4.0, this annotation may be used as a - * meta-annotation to create custom composed annotations. + *
This annotation may be used as a meta-annotation to create custom + * composed annotations. * * @author Rod Johnson * @author Sam Brannen diff --git a/spring-test/src/main/java/org/springframework/test/annotation/Timed.java b/spring-test/src/main/java/org/springframework/test/annotation/Timed.java index f3acffe5a9..db493e76d5 100644 --- a/spring-test/src/main/java/org/springframework/test/annotation/Timed.java +++ b/spring-test/src/main/java/org/springframework/test/annotation/Timed.java @@ -33,8 +33,8 @@ import java.lang.annotation.Target; * any {@linkplain Repeat repetitions} of the test, and any set up or * tear down of the test fixture. * - *
As of Spring Framework 4.0, this annotation may be used as a - * meta-annotation to create custom composed annotations. + *
This annotation may be used as a meta-annotation to create custom + * composed annotations. * * @author Rod Johnson * @author Sam Brannen diff --git a/spring-test/src/main/java/org/springframework/test/context/ActiveProfiles.java b/spring-test/src/main/java/org/springframework/test/context/ActiveProfiles.java index 50f892f0c7..9ad1e3068a 100644 --- a/spring-test/src/main/java/org/springframework/test/context/ActiveProfiles.java +++ b/spring-test/src/main/java/org/springframework/test/context/ActiveProfiles.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2016 the original author or authors. + * Copyright 2002-2019 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,8 +31,8 @@ import org.springframework.core.annotation.AliasFor; * an {@link org.springframework.context.ApplicationContext ApplicationContext} * for test classes. * - *
As of Spring Framework 4.0, this annotation may be used as a - * meta-annotation to create custom composed annotations. + *
This annotation may be used as a meta-annotation to create custom + * composed annotations. * * @author Sam Brannen * @since 3.1 diff --git a/spring-test/src/main/java/org/springframework/test/context/ContextHierarchy.java b/spring-test/src/main/java/org/springframework/test/context/ContextHierarchy.java index 1f5c75b683..1e49e9f173 100644 --- a/spring-test/src/main/java/org/springframework/test/context/ContextHierarchy.java +++ b/spring-test/src/main/java/org/springframework/test/context/ContextHierarchy.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2016 the original author or authors. + * Copyright 2002-2019 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. @@ -131,8 +131,8 @@ import java.lang.annotation.Target; * ) * public class ExtendedTests extends BaseTests {} * - *
As of Spring Framework 4.0, this annotation may be used as a - * meta-annotation to create custom composed annotations. + *
This annotation may be used as a meta-annotation to create custom + * composed annotations. * * @author Sam Brannen * @since 3.2.2 diff --git a/spring-test/src/main/java/org/springframework/test/context/TestExecutionListeners.java b/spring-test/src/main/java/org/springframework/test/context/TestExecutionListeners.java index 450bf6b9b9..c9a81f730b 100644 --- a/spring-test/src/main/java/org/springframework/test/context/TestExecutionListeners.java +++ b/spring-test/src/main/java/org/springframework/test/context/TestExecutionListeners.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2016 the original author or authors. + * Copyright 2002-2019 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,8 +33,8 @@ import org.springframework.core.annotation.AliasFor; *
Typically, {@code @TestExecutionListeners} will be used in conjunction * with {@link ContextConfiguration @ContextConfiguration}. * - *
As of Spring Framework 4.0, this annotation may be used as a - * meta-annotation to create custom composed annotations. + *
This annotation may be used as a meta-annotation to create custom + * composed annotations. * * @author Sam Brannen * @since 2.5 diff --git a/spring-test/src/main/java/org/springframework/test/context/transaction/AfterTransaction.java b/spring-test/src/main/java/org/springframework/test/context/transaction/AfterTransaction.java index ccc412feef..03f88348f6 100644 --- a/spring-test/src/main/java/org/springframework/test/context/transaction/AfterTransaction.java +++ b/spring-test/src/main/java/org/springframework/test/context/transaction/AfterTransaction.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2019 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,8 +31,8 @@ import java.lang.annotation.Target; *
{@code @AfterTransaction} methods declared in superclasses or as interface * default methods will be executed after those of the current test class. * - *
As of Spring Framework 4.0, this annotation may be used as a - * meta-annotation to create custom composed annotations. + *
This annotation may be used as a meta-annotation to create custom + * composed annotations. * *
As of Spring Framework 4.3, {@code @AfterTransaction} may also be * declared on Java 8 based interface default methods. diff --git a/spring-test/src/main/java/org/springframework/test/context/transaction/BeforeTransaction.java b/spring-test/src/main/java/org/springframework/test/context/transaction/BeforeTransaction.java index 06de07fa21..e04358b391 100644 --- a/spring-test/src/main/java/org/springframework/test/context/transaction/BeforeTransaction.java +++ b/spring-test/src/main/java/org/springframework/test/context/transaction/BeforeTransaction.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2019 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,8 +31,8 @@ import java.lang.annotation.Target; *
{@code @BeforeTransaction} methods declared in superclasses or as interface * default methods will be executed before those of the current test class. * - *
As of Spring Framework 4.0, this annotation may be used as a - * meta-annotation to create custom composed annotations. + *
This annotation may be used as a meta-annotation to create custom + * composed annotations. * *
As of Spring Framework 4.3, {@code @BeforeTransaction} may also be * declared on Java 8 based interface default methods. diff --git a/spring-test/src/main/java/org/springframework/test/context/web/WebAppConfiguration.java b/spring-test/src/main/java/org/springframework/test/context/web/WebAppConfiguration.java index 05ffc45c63..4df60f1775 100644 --- a/spring-test/src/main/java/org/springframework/test/context/web/WebAppConfiguration.java +++ b/spring-test/src/main/java/org/springframework/test/context/web/WebAppConfiguration.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2016 the original author or authors. + * Copyright 2002-2019 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,8 +38,8 @@ import java.lang.annotation.Target; * {@link org.springframework.test.context.ContextConfiguration @ContextConfiguration}, * either within a single test class or within a test class hierarchy. * - *
As of Spring Framework 4.0, this annotation may be used as a - * meta-annotation to create custom composed annotations. + *
This annotation may be used as a meta-annotation to create custom
+ * composed annotations.
*
* @author Sam Brannen
* @since 3.2
diff --git a/src/docs/asciidoc/testing.adoc b/src/docs/asciidoc/testing.adoc
index 1383024095..78d4c61f35 100644
--- a/src/docs/asciidoc/testing.adoc
+++ b/src/docs/asciidoc/testing.adoc
@@ -1155,9 +1155,9 @@ result is committed to the database):
`@BeforeTransaction` indicates that the annotated `void` method should be run before a
transaction is started, for test methods that have been configured to run within a
-transaction by using Spring's `@Transactional` annotation. As of Spring Framework 4.3,
-`@BeforeTransaction` methods are not required to be `public` and may be declared on Java
-8-based interface default methods.
+transaction by using Spring's `@Transactional` annotation. `@BeforeTransaction` methods
+are not required to be `public` and may be declared on Java 8-based interface default
+methods.
The following example shows how to use the `@BeforeTransaction` annotation:
@@ -1187,9 +1187,9 @@ The following example shows how to use the `@BeforeTransaction` annotation:
`@AfterTransaction` indicates that the annotated `void` method should be run after a
transaction is ended, for test methods that have been configured to run within a
-transaction by using Spring's `@Transactional` annotation. As of Spring Framework 4.3,
-`@AfterTransaction` methods are not required to be `public` and may be declared on Java
-8-based interface default methods.
+transaction by using Spring's `@Transactional` annotation. `@AfterTransaction` methods
+are not required to be `public` and may be declared on Java 8-based interface default
+methods.
[source,java,indent=0,subs="verbatim,quotes",role="primary"]
.Java
@@ -2220,11 +2220,11 @@ integration test managed by the Spring TestContext Framework. You should impleme
active bean definition profiles, test property sources, context hierarchies, and
`WebApplicationContext` support.
-`SmartContextLoader` is an extension of the `ContextLoader` interface introduced in
-Spring 3.1, superseding the original minimal `ContextLoader` SPI. Specifically, a
-`SmartContextLoader` can choose to process resource locations, component classes,
-or context initializers. Furthermore, a `SmartContextLoader` can set active bean
-definition profiles and test property sources in the context that it loads.
+`SmartContextLoader` is an extension of the `ContextLoader` interface that supersedes the
+original minimal `ContextLoader` SPI. Specifically, a `SmartContextLoader` can choose to
+process resource locations, component classes, or context initializers. Furthermore, a
+`SmartContextLoader` can set active bean definition profiles and test property sources in
+the context that it loads.
Spring provides the following implementations:
@@ -2316,8 +2316,8 @@ for details and examples.
Registering `TestExecutionListener` implementations by using `@TestExecutionListeners` is
suitable for custom listeners that are used in limited testing scenarios. However, it can
-become cumbersome if a custom listener needs to be used across a test suite. Since Spring
-Framework 4.1, this issue is addressed through support for automatic discovery of default
+become cumbersome if a custom listener needs to be used across an entire test suite. This
+issue is addressed through support for automatic discovery of default
`TestExecutionListener` implementations through the `SpringFactoriesLoader` mechanism.
Specifically, the `spring-test` module declares all core default `TestExecutionListener`
@@ -2391,9 +2391,9 @@ which listeners are registered by default. Moreover, the set of default listener
change from release to release -- for example, `SqlScriptsTestExecutionListener` was
introduced in Spring Framework 4.1, and `DirtiesContextBeforeModesTestExecutionListener`
was introduced in Spring Framework 4.2. Furthermore, third-party frameworks like Spring
-Security register their own default `TestExecutionListener` implementations by using
-the aforementioned <