|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2020 the original author or authors. |
| 2 | + * Copyright 2002-2023 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
|
31 | 31 | *
|
32 | 32 | * <p>Use this annotation if a test has modified the context — for
|
33 | 33 | * example, by modifying the state of a singleton bean, modifying the state
|
34 |
| - * of an embedded database, etc. Subsequent tests that request the same |
35 |
| - * context will be supplied a new context. |
| 34 | + * of an embedded database, etc. Subsequent tests that request the same context |
| 35 | + * will be supplied a new context. |
36 | 36 | *
|
37 | 37 | * <p>{@code @DirtiesContext} may be used as a class-level and method-level
|
38 | 38 | * annotation within the same class or class hierarchy. In such scenarios, the
|
39 | 39 | * {@code ApplicationContext} will be marked as <em>dirty</em> before or
|
40 | 40 | * after any such annotated method as well as before or after the current test
|
41 | 41 | * class, depending on the configured {@link #methodMode} and {@link #classMode}.
|
42 | 42 | *
|
43 |
| - * <p>This annotation may be used as a <em>meta-annotation</em> to create custom |
44 |
| - * <em>composed annotations</em>. |
45 |
| - * |
46 |
| - * <p>As of Spring Framework 5.3, this annotation will be inherited from an |
47 |
| - * enclosing test class by default. See |
48 |
| - * {@link org.springframework.test.context.NestedTestConfiguration @NestedTestConfiguration} |
49 |
| - * for details. |
50 |
| - * |
51 | 43 | * <h3>Supported Test Phases</h3>
|
52 | 44 | * <ul>
|
53 | 45 | * <li><strong>Before current test class</strong>: when declared at the class
|
|
70 | 62 | * </ul>
|
71 | 63 | *
|
72 | 64 | * <p>{@code BEFORE_*} modes are supported by the
|
73 |
| - * {@link org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener DirtiesContextBeforeModesTestExecutionListener}; |
74 |
| - * {@code AFTER_*} modes are supported by the |
75 |
| - * {@link org.springframework.test.context.support.DirtiesContextTestExecutionListener DirtiesContextTestExecutionListener}. |
| 65 | + * {@link org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener |
| 66 | + * DirtiesContextBeforeModesTestExecutionListener}; {@code AFTER_*} modes are supported by the |
| 67 | + * {@link org.springframework.test.context.support.DirtiesContextTestExecutionListener |
| 68 | + * DirtiesContextTestExecutionListener}. |
| 69 | + * |
| 70 | + * <p>This annotation may be used as a <em>meta-annotation</em> to create custom |
| 71 | + * <em>composed annotations</em>. |
| 72 | + * |
| 73 | + * <p>As of Spring Framework 5.3, this annotation will be inherited from an |
| 74 | + * enclosing test class by default. See |
| 75 | + * {@link org.springframework.test.context.NestedTestConfiguration @NestedTestConfiguration} |
| 76 | + * for details. |
76 | 77 | *
|
77 | 78 | * @author Sam Brannen
|
78 | 79 | * @author Rod Johnson
|
|
0 commit comments