- 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
-
- 12 8月, 2019 1 次提交
-
-
由 Sam Brannen 提交于
See gh-23451
-
- 07 8月, 2019 3 次提交
-
-
由 Sam Brannen 提交于
Since arbitrary levels of proxies do not occur, this commit replaces the `while` loop in SerializableTypeWrapper.unwrap() with a simple `if` statement. Closes gh-23415
-
由 Sam Brannen 提交于
-
由 Sam Brannen 提交于
Prior to this commit, AnnotationAttributes#assertNotException checked if the attribute value was an instance of Exception. Although this was typically sufficient, the scope was not always broad enough -- for example, if AnnotationReadingVisitorUtils#convertClassValues stored a Throwable in the map (such as a LinkageError). This commit fixes this by checking for an instance of Throwable in AnnotationAttributes#assertNotException. Closes gh-23424
-
- 01 8月, 2019 3 次提交
-
-
由 Phillip Webb 提交于
Deprecate all mutation methods in `MethodParameter` in favor of factory methods that return a new instance. Existing code that previously relied on mutation has been updated to use the replacement methods. Closes gh-23385
-
由 Sam Brannen 提交于
Prior to this commit, the new `TYPE_HIERARCHY_AND_ENCLOSING_CLASSES` annotation search strategy failed to find annotations on enclosing classes if the source class was a nested class that itself had no annotations present. This commit fixes this by adding special logic to AnnotationsScanner's isWithoutHierarchy() method to properly support nested classes. Closes gh-23378
-
由 Sam Brannen 提交于
-
- 31 7月, 2019 2 次提交
-
-
由 Phillip Webb 提交于
Add a `TYPE_HIERARCHY_AND_ENCLOSING_CLASSES` annotation search strategy that can be used to search the full type hierarchy as well as any enclosing classes. Closes gh-23378
-
由 Phillip Webb 提交于
Rename `SearchStrategy.EXHAUSTIVE` from `MergedAnnotations` to `SearchStrategy.TYPE_HIERARCHY` See gh-23378
-
- 30 7月, 2019 2 次提交
-
-
由 Juergen Hoeller 提交于
See gh-23352
-
由 Juergen Hoeller 提交于
Closes gh-23352
-
- 24 7月, 2019 2 次提交
-
-
由 Sam Brannen 提交于
See gh-23300
-
由 stsypanov 提交于
Closes gh-23300
-
- 20 7月, 2019 3 次提交
-
-
由 Juergen Hoeller 提交于
See gh-23321
-
由 Juergen Hoeller 提交于
-
由 Phillip Webb 提交于
Fix `isAssignable` for `ResolvableType.forRawClass` so that it can be used with types backed by a `TypeVarible`. Prior to this commit the rawClass value was used, which wouldn't always work. Closes gh-23321
-
- 19 7月, 2019 2 次提交
-
-
由 Arjen Poutsma 提交于
Closes gh-23317
-
由 Arjen Poutsma 提交于
This commit introduces the DataBufferWrapper, a wrapper for DataBuffers, and uses it in applicable use cases.
-
- 10 7月, 2019 1 次提交
-
-
由 Arjen Poutsma 提交于
DataBuffers::split (and underlying algorithm) should not be returning a Flux<DataBuffer>, but rather a Flux<Flux<DataBuffer>>. In other words, it should not join all data buffers that come before a delimiter. Providing an implementation of a such a fully reactive split method proved to be beyond the scope of this release, so this commit removes the method altogether.
-
- 05 7月, 2019 1 次提交
-
-
由 Juergen Hoeller 提交于
Closes gh-23208
-
- 25 6月, 2019 2 次提交
-
-
由 Sam Brannen 提交于
See gh-23187
-
由 Johnny Lim 提交于
Closes gh-23191
-
- 24 6月, 2019 1 次提交
-
-
由 Sam Brannen 提交于
See gh-23187
-
- 14 6月, 2019 1 次提交
-
-
由 Arjen Poutsma 提交于
This commit adds two methods to DataBufferUtils: - one that reads a Flux<DataBuffer> from a Path - one that writes a Flux<DataBuffer> to a Path
-
- 12 6月, 2019 1 次提交
-
-
由 Juergen Hoeller 提交于
Closes gh-22957
-
- 30 5月, 2019 1 次提交
-
-
由 Sam Brannen 提交于
-
- 28 5月, 2019 1 次提交
-
-
由 Sam Brannen 提交于
This commit introduces an internal SortedProperties class that is a specialization of java.util.Properties which sorts properties alphanumerically based on their keys. This can be useful when storing a java.util.Properties instance in a properties file, since it allows such files to be generated in a repeatable manner with consistent ordering of properties. Comments in generated properties files can also be optionally omitted. An instance of SortedProperties can be created via two new createSortedProperties() factory methods in org.springframework.core.CollectionFactory. Closes gh-23018
-
- 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
-
- 24 5月, 2019 2 次提交
-
-
由 Phillip Webb 提交于
Migrate all existing JUnit 4 `assert...` based assertions to AssertJ and add a checkstyle rule to ensure they don't return. See gh-23022
-
由 Phillip Webb 提交于
Migrate all existing `assertThat(..., Matcher)` assertions to AssertJ and add checkstyle rules to ensure they don't return. See gh-23022
-
- 21 5月, 2019 2 次提交
-
-
由 Juergen Hoeller 提交于
See gh-22959
-
由 Phillip Webb 提交于
Migrate tests that use `@test(expectedException=...)` or `try...fail...catch` to use AssertJ's `assertThatException` instead.
-
- 15 5月, 2019 1 次提交
-
-
由 Arjen Poutsma 提交于
* Added DataBufferUtils.split variant that takes multiple delimiters as argument (instead of 1). * Use this new split() variant from within StringDecoder, replacing its inefficient algorithm with the Knuth-Morris-Pratt algorithm.
-
- 13 5月, 2019 1 次提交
-
-
由 Sam Brannen 提交于
-
- 12 5月, 2019 1 次提交
-
-
由 Sam Brannen 提交于
org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
-
- 09 5月, 2019 2 次提交
-
-
由 Phillip Webb 提交于
Migrate all tests to consistently use BDD Mockito. Also add checksyle rule to enforce going forwards.
-
由 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
-
由 Juergen Hoeller 提交于
Includes fix for typo in visitor class names. See gh-22909
-