- 30 10月, 2019 1 次提交
-
-
由 Juergen Hoeller 提交于
Closes gh-23834
-
- 05 9月, 2019 1 次提交
-
-
由 Phillip Webb 提交于
See gh-23539
-
- 20 8月, 2019 1 次提交
-
-
由 Sam Brannen 提交于
See gh-23451
-
- 17 8月, 2019 1 次提交
-
-
由 Sam Brannen 提交于
This first commit for this issue: - allows JUnit Jupiter to be used for all tests - adds a dependency on mockito-junit-jupiter - migrates tests in spring-core to JUnit Jupiter, except parameterized tests The following script was developed in order to semi-automate the migration process. https://github.com/sbrannen/junit-converters/blob/master/junit4ToJUnitJupiter.zsh See gh-23451
-
- 27 5月, 2019 1 次提交
-
-
由 Phillip Webb 提交于
Rename some `MergedAnnotation` methods to prevent using parent/child terminology, specifically: `getDepth()` has been renamed `getDistance()` `getParent()` has been renamed `getMetaSource()` `getTypeHierarchy()` has been renamed `getMetaTypes()` The parent child naming was particularly confusing given that the parent/child relationships were inverted from the way that a lot of users think about meta-annotations. For example, a `@RequestMapping` having a parent of `@GetMapping` feels odd given that `@GetMapping` is the thing declaring the meta-annotation relationship. The new method names are designed to align more closely with existing terms. For example, `getMetaSource` hints at the relationship with `isMetaAnnotated` and `getSource`. Closes gh-22946
-
- 13 5月, 2019 1 次提交
-
-
由 Sam Brannen 提交于
-
- 09 5月, 2019 1 次提交
-
-
由 Phillip Webb 提交于
Organize test imports to expand all '.*' static imports into fully qualified imports. This update will allow us to use additional checkstyle rules in the future, and will also help if we migrate fully to AssertJ.
-
- 08 5月, 2019 2 次提交
-
-
由 Phil Webb 提交于
* Add limited checkstyles to test code Add a limited set of checkstyle rules to the test codebase to improve code consistency. * Fix checksyle violations in test code * Organize imports to fix checkstyle for test code * Migrate to assertThatExceptionOfType Migrate aware from ExpectedException rules to AssertJ exception assertions. Also include a checkstyle rules to ensure that the the ExpectedException is not accidentally used in the future. See gh-22894
-
由 Phillip Webb 提交于
Add a `getTypeHierarchy()` method to `MergedAnnotation` that can be used to return the full type hierarchy information. This method is specifically designed to be used in combination with `MergedAnnotationPredicates.unique`. This update also allows us to delete the `parentAndType` method from `AnnotatedElementUtils`. Closes gh-22908
-
- 23 3月, 2019 3 次提交
-
-
由 Sam Brannen 提交于
See gh-22617 gh-22622 gh-22635
-
由 Juergen Hoeller 提交于
Includes consistent ignoring of all java.lang (meta-)annotations. Closes gh-22586
-
由 Phillip Webb 提交于
Add new `MergedAnnotations` and `MergedAnnotation` interfaces that attempt to provide a uniform way for dealing with merged annotations. Specifically, the new API provides alternatives for the static methods in `AnnotationUtils` and `AnnotatedElementUtils` and supports Spring's comprehensive annotation attribute `@AliasFor` features. The interfaces also open the possibility of the same API being exposed from the `AnnotationMetadata` interface. Additional utility classes for collecting, filtering and selecting annotations have also been added. Typical usage for the new API would be something like: MergedAnnotations.from(Example.class) .stream(MyAnnotation.class) .map(a -> a.getString("value")) .forEach(System.out::println); Closes gh-21697
-