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