- 28 8月, 2019 3 次提交
-
-
由 Sam Brannen 提交于
See gh-19930
-
由 Sam Brannen 提交于
See gh-19930
-
由 Sam Brannen 提交于
This is a work in progress (WIP) which includes failing tests. See gh-19930
-
- 23 8月, 2019 3 次提交
-
-
由 Sam Brannen 提交于
Closes gh-23504
-
由 Sam Brannen 提交于
Prior to this commit, the invokeMethod() utility method in ReflectionTestUtils only supported instance methods. This commit brings the invokeMethod() support on par with the getField() support by supporting the invocation of static methods via two new invokeMethod() variants. Closes gh-23504
-
由 Sam Brannen 提交于
-
- 21 8月, 2019 1 次提交
-
-
由 John Lin 提交于
Closes gh-23487
-
- 20 8月, 2019 3 次提交
-
-
由 Rossen Stoyanchev 提交于
WebClient, WebTestClient, and ServerResponse
-
由 Rossen Stoyanchev 提交于
-
由 Rossen Stoyanchev 提交于
The recently added body(Object) variant can be confused easily with body(Publisher, Class) forgetting to provide the element type and only running into the IllegalArgumentException at runtime. See gh-23212
-
- 09 8月, 2019 1 次提交
-
-
由 Sam Brannen 提交于
This commit redeclares default methods in AbstractTestExecutionListener in order to make them inlinable.
-
- 07 8月, 2019 1 次提交
-
-
由 Sam Brannen 提交于
-
- 31 7月, 2019 3 次提交
-
-
由 Phillip Webb 提交于
Rename `SearchStrategy.EXHAUSTIVE` from `MergedAnnotations` to `SearchStrategy.TYPE_HIERARCHY` See gh-23378
-
由 Juergen Hoeller 提交于
-
由 Phillip Webb 提交于
Update `ListableBeanFactory` and `BeanFactoryUtils` to add the missing `getBeanNamesForType` methods that accept a `ResolvableType` rather than a `Class`. This completes the work started in 778a0194. Closes gh-23335
-
- 30 7月, 2019 4 次提交
-
-
由 Juergen Hoeller 提交于
See gh-23384
-
由 Juergen Hoeller 提交于
-
由 Sam Brannen 提交于
See gh-23320
-
由 Phillip Webb 提交于
See gh-23320
-
- 29 7月, 2019 1 次提交
-
-
由 Sam Brannen 提交于
-
- 28 7月, 2019 4 次提交
-
-
由 Sam Brannen 提交于
-
由 Sam Brannen 提交于
See gh-23320
-
由 Sam Brannen 提交于
Prior to this commit, if multiple, directly present `@TestPropertySource` annotations declared the same property, the precedence ordering was top-down instead of bottom-up, in contrast to the semantics for class hierarchies. In other words, a subsequent `@TestPropertySource` annotation could not override a property in a previous `@TestPropertySource` annotation. This commit overhauls the internals of `TestPropertySourceUtils` in order to provide proper support for property overrides within local, directly present `@TestPropertySource` declarations. Specifically, the `locations` and `properties` attributes from all `@TestPropertySource` declarations that are directly present or meta-present on a given class are now merged into a single instance of `TestPropertySourceAttributes` internally, with assertions in place to ensure that such "same level" `@TestPropertySource` declarations do not configure different values for the `inheritLocations` and `inheritProperties` flags. Effectively, all "same level" `@TestPropertySource` declarations are treated internally as if there were only one such annotation declared by the user. See gh-23320
-
由 Anatoliy Korovin 提交于
Prior to this commit, @TestPropertySource could not be declared as a repeatable annotation. In addition, a local declaration of @TestPropertySource would silently override a meta-present @TestPropertySource. This commit addresses this issue by introducing @TestPropertySources as a container for @TestPropertySource. This commit also updates the search and algorithms within TestPropertySourceUtils. Closes gh-23320
-
- 24 7月, 2019 1 次提交
-
-
由 Sam Brannen 提交于
gh-23289 introduced support for multiple single-line comment prefixes for ScriptUtils, ResourceDatabasePopulator, and EmbeddedDatabaseBuilder. This commit adds the same support for @SqlConfig in the TestContext Framework. Specifically, @SqlConfig has a new `commentPrefixes` attribute for setting multiple single-line comment prefixes. Closes gh-23331
-
- 23 7月, 2019 1 次提交
-
-
由 Sam Brannen 提交于
-
- 21 7月, 2019 3 次提交
-
-
由 Sam Brannen 提交于
Closes gh-1835
-
由 Sam Brannen 提交于
See gh-1835
-
由 asympro 提交于
See gh-1835
-
- 18 7月, 2019 2 次提交
-
-
由 Sam Brannen 提交于
-
由 Sam Brannen 提交于
-
- 17 7月, 2019 1 次提交
-
-
由 Sam Brannen 提交于
-
- 16 7月, 2019 1 次提交
-
-
由 Sebastien Deleuze 提交于
This commit adds a getContentAsString(Charset fallbackCharset) method to MockHttpServletResponse in order to make it easier to get the content in a specific charset like UTF-8 when the response charset has not been explicitly set (by default ISO-8859-1 is used). JsonPathResultMatchers leverages this new feature to support UTF-8 content out of the box. Closes gh-23219
-
- 12 7月, 2019 3 次提交
-
-
由 Sam Brannen 提交于
See gh-23224
-
由 Rob Winch 提交于
See gh-22839
-
由 Sam Brannen 提交于
Prior to this commit, @TestConstructor supported a boolean `autowire` attribute which naturally limited the configuration to two states: on or off. Since we may need to support additional autowiring modes in the future, the use of a boolean is limiting. This commit address this issue by introducing a new AutowireMode enum in @TestConstructor with ALL and ANNOTATED constants. In addition, the attribute has been renamed to `autowireMode`, and the system property has been renamed to `spring.test.constructor.autowire.mode` for greater clarity of purpose. Closes gh-23224
-
- 08 7月, 2019 2 次提交
-
-
由 Sebastien Deleuze 提交于
-
由 Sebastien Deleuze 提交于
The commit deprecates syncBody(Object) in favor of body(Object) which has the same behavior in ServerResponse, WebClient and WebTestClient. It also adds body(Object, Class) and body(Object, ParameterizedTypeReference) methods in order to support any reactive type that can be adapted to a Publisher via ReactiveAdapterRegistry. Related BodyInserters#fromProducer methods are provided as well. Shadowed Kotlin body<T>() extensions are deprecated in favor of bodyWithType<T>() ones, including dedicated Publisher<T> and Flow<T> variants. Coroutines extensions are adapted as well, and body(Object) can now be used with suspending functions. Closes gh-23212
-
- 18 6月, 2019 2 次提交
-
-
由 Sam Brannen 提交于
See gh-23141
-
由 RustyTheClone 提交于
This commit introduces an overloaded jsonPath() method to specify a target type to coerce into for MockMvcResultMatchers. - jsonPath(String, Matcher<T>, Class<T>) Closes gh-23141
-