File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -427,13 +427,13 @@ method has been added.
427
427
[subs="verbatim,quotes"]
428
428
----
429
429
public @interface ContextConfiguration {
430
-
430
+
431
431
@AliasFor(attribute = "locations")
432
432
String[] value() default {};
433
-
433
+
434
434
@AliasFor(attribute = "value")
435
435
String[] locations() default {};
436
-
436
+
437
437
// ...
438
438
}
439
439
----
@@ -442,17 +442,17 @@ public @interface ContextConfiguration {
442
442
over exactly which attributes are overridden within an annotation
443
443
hierarchy. In fact, it is now possible to declare an alias for the
444
444
`value` attribute of a meta-annotation.
445
- ** For example, one can now develop a composed annotation with a custom
445
+ ** For example, one can now develop a composed annotation with a custom
446
446
attribute override as follows.
447
447
[source,java,indent=0]
448
448
[subs="verbatim,quotes"]
449
449
----
450
450
@ContextConfiguration
451
451
public @interface MyTestConfig {
452
-
453
- @AliasFor(annotation = ContextConfiguration.class, attribute = "locations ")
452
+
453
+ @AliasFor(annotation = ContextConfiguration.class, attribute = "value ")
454
454
String[] xmlFiles();
455
-
455
+
456
456
// ...
457
457
}
458
458
----
You can’t perform that action at this time.
0 commit comments