|
91 | 91 |
|
92 | 92 | /** |
93 | 93 | * Alias for {@link #locations}. |
94 | | - * |
95 | 94 | * <p>This attribute may <strong>not</strong> be used in conjunction with |
96 | 95 | * {@link #locations}, but it may be used instead of {@link #locations}. |
97 | | - * |
98 | 96 | * @since 3.0 |
99 | 97 | * @see #inheritLocations |
100 | 98 | */ |
|
104 | 102 | /** |
105 | 103 | * The resource locations to use for loading an |
106 | 104 | * {@link org.springframework.context.ApplicationContext ApplicationContext}. |
107 | | - * |
108 | 105 | * <p>Check out the Javadoc for |
109 | 106 | * {@link org.springframework.test.context.support.AbstractContextLoader#modifyLocations |
110 | 107 | * AbstractContextLoader.modifyLocations()} for details on how a location |
|
113 | 110 | * {@link org.springframework.test.context.support.AbstractContextLoader#generateDefaultLocations |
114 | 111 | * AbstractContextLoader.generateDefaultLocations()} for details on the |
115 | 112 | * default locations that are going to be used if none are specified. |
116 | | - * |
117 | 113 | * <p>Note that the aforementioned default rules only apply for a standard |
118 | 114 | * {@link org.springframework.test.context.support.AbstractContextLoader |
119 | 115 | * AbstractContextLoader} subclass such as |
|
122 | 118 | * which are the effective default implementations used at runtime if |
123 | 119 | * {@code locations} are configured. See the documentation for {@link #loader} |
124 | 120 | * for further details regarding default loaders. |
125 | | - * |
126 | 121 | * <p>This attribute may <strong>not</strong> be used in conjunction with |
127 | 122 | * {@link #value}, but it may be used instead of {@link #value}. |
128 | | - * |
129 | 123 | * @since 2.5 |
130 | 124 | * @see #inheritLocations |
131 | 125 | */ |
|
135 | 129 | /** |
136 | 130 | * The <em>annotated classes</em> to use for loading an |
137 | 131 | * {@link org.springframework.context.ApplicationContext ApplicationContext}. |
138 | | - * |
139 | | - * <p>Check out the Javadoc for |
| 132 | + * <p>Check out the javadoc for |
140 | 133 | * {@link org.springframework.test.context.support.AnnotationConfigContextLoader#detectDefaultConfigurationClasses |
141 | 134 | * AnnotationConfigContextLoader.detectDefaultConfigurationClasses()} for details |
142 | 135 | * on how default configuration classes will be detected if no |
143 | 136 | * <em>annotated classes</em> are specified. See the documentation for |
144 | 137 | * {@link #loader} for further details regarding default loaders. |
145 | | - * |
146 | 138 | * @since 3.1 |
147 | 139 | * @see org.springframework.context.annotation.Configuration |
148 | 140 | * @see org.springframework.test.context.support.AnnotationConfigContextLoader |
|
153 | 145 | /** |
154 | 146 | * The application context <em>initializer classes</em> to use for initializing |
155 | 147 | * a {@link ConfigurableApplicationContext}. |
156 | | - * |
157 | 148 | * <p>The concrete {@code ConfigurableApplicationContext} type supported by each |
158 | 149 | * declared initializer must be compatible with the type of {@code ApplicationContext} |
159 | 150 | * created by the {@link SmartContextLoader} in use. |
160 | | - * |
161 | 151 | * <p>{@code SmartContextLoader} implementations typically detect whether |
162 | 152 | * Spring's {@link org.springframework.core.Ordered Ordered} interface has been |
163 | 153 | * implemented or if the @{@link org.springframework.core.annotation.Order Order} |
164 | 154 | * annotation is present and sort instances accordingly prior to invoking them. |
165 | | - * |
166 | 155 | * @since 3.2 |
167 | 156 | * @see org.springframework.context.ApplicationContextInitializer |
168 | 157 | * @see org.springframework.context.ConfigurableApplicationContext |
|
174 | 163 | /** |
175 | 164 | * Whether or not {@link #locations resource locations} or <em>annotated |
176 | 165 | * classes</em> from test superclasses should be <em>inherited</em>. |
177 | | - * |
178 | 166 | * <p>The default value is {@code true}. This means that an annotated |
179 | 167 | * class will <em>inherit</em> the resource locations or annotated classes |
180 | 168 | * defined by test superclasses. Specifically, the resource locations or |
181 | 169 | * annotated classes for a given test class will be appended to the list of |
182 | 170 | * resource locations or annotated classes defined by test superclasses. |
183 | 171 | * Thus, subclasses have the option of <em>extending</em> the list of resource |
184 | 172 | * locations or annotated classes. |
185 | | - * |
186 | 173 | * <p>If {@code inheritLocations} is set to {@code false}, the |
187 | 174 | * resource locations or annotated classes for the annotated class |
188 | 175 | * will <em>shadow</em> and effectively replace any resource locations |
189 | 176 | * or annotated classes defined by superclasses. |
190 | | - * |
191 | 177 | * <p>In the following example that uses path-based resource locations, the |
192 | 178 | * {@link org.springframework.context.ApplicationContext ApplicationContext} |
193 | 179 | * for {@code ExtendedTest} will be loaded from |
|
206 | 192 | * // ... |
207 | 193 | * } |
208 | 194 | * </pre> |
209 | | - * |
210 | 195 | * <p>Similarly, in the following example that uses annotated |
211 | 196 | * classes, the |
212 | 197 | * {@link org.springframework.context.ApplicationContext ApplicationContext} |
|
233 | 218 | /** |
234 | 219 | * Whether or not {@linkplain #initializers context initializers} from test |
235 | 220 | * superclasses should be <em>inherited</em>. |
236 | | - * |
237 | 221 | * <p>The default value is {@code true}. This means that an annotated |
238 | 222 | * class will <em>inherit</em> the application context initializers defined |
239 | 223 | * by test superclasses. Specifically, the initializers for a given test |
240 | 224 | * class will be added to the set of initializers defined by test |
241 | 225 | * superclasses. Thus, subclasses have the option of <em>extending</em> the |
242 | 226 | * set of initializers. |
243 | | - * |
244 | 227 | * <p>If {@code inheritInitializers} is set to {@code false}, the |
245 | 228 | * initializers for the annotated class will <em>shadow</em> and effectively |
246 | 229 | * replace any initializers defined by superclasses. |
247 | | - * |
248 | 230 | * <p>In the following example, the |
249 | 231 | * {@link org.springframework.context.ApplicationContext ApplicationContext} |
250 | 232 | * for {@code ExtendedTest} will be initialized using |
|
272 | 254 | * The type of {@link SmartContextLoader} (or {@link ContextLoader}) to use |
273 | 255 | * for loading an {@link org.springframework.context.ApplicationContext |
274 | 256 | * ApplicationContext}. |
275 | | - * |
276 | 257 | * <p>If not specified, the loader will be inherited from the first superclass |
277 | 258 | * that is annotated with {@code @ContextConfiguration} and specifies an |
278 | 259 | * explicit loader. If no class in the hierarchy specifies an explicit |
279 | 260 | * loader, a default loader will be used instead. |
280 | | - * |
281 | 261 | * <p>The default concrete implementation chosen at runtime will be either |
282 | 262 | * {@link org.springframework.test.context.support.DelegatingSmartContextLoader |
283 | 263 | * DelegatingSmartContextLoader} or |
|
293 | 273 | * {@link org.springframework.test.context.web.GenericXmlWebContextLoader GenericXmlWebContextLoader}, |
294 | 274 | * {@link org.springframework.test.context.web.GenericGroovyXmlWebContextLoader GenericGroovyXmlWebContextLoader}, and |
295 | 275 | * {@link org.springframework.test.context.web.AnnotationConfigWebContextLoader AnnotationConfigWebContextLoader}. |
296 | | - * |
297 | 276 | * @since 2.5 |
298 | 277 | */ |
299 | 278 | Class<? extends ContextLoader> loader() default ContextLoader.class; |
300 | 279 |
|
301 | 280 | /** |
302 | 281 | * The name of the context hierarchy level represented by this configuration. |
303 | | - * |
304 | 282 | * <p>If not specified the name will be inferred based on the numerical level |
305 | 283 | * within all declared contexts within the hierarchy. |
306 | | - * |
307 | 284 | * <p>This attribute is only applicable when used within a test class hierarchy |
308 | 285 | * that is configured using {@code @ContextHierarchy}, in which case the name |
309 | 286 | * can be used for <em>merging</em> or <em>overriding</em> this configuration |
310 | 287 | * with configuration of the same name in hierarchy levels defined in superclasses. |
311 | 288 | * See the Javadoc for {@link ContextHierarchy @ContextHierarchy} for details. |
312 | | - * |
313 | 289 | * @since 3.2.2 |
314 | 290 | */ |
315 | 291 | String name() default ""; |
|
0 commit comments