- 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
-
- 27 8月, 2019 1 次提交
-
-
由 Sam Brannen 提交于
Prior to this commit, there was no way to replace the Set-Cookie header via MockHttpServletResponse. Specifically, an invocation of setHeader() for the Set-Cookie header resulted in an additional Set-Cookie header instead of replacing the existing one, which is in violation of the contract for javax.servlet.http.HttpServletResponse.setHeader(...). This commit refactors the internals of MockHttpServletResponse to ensure that an existing Set-Cookie header is overwritten when set via an invocation of setHeader(). This commit also verifies the expected behavior for addHeader() and addCookie() with regard to multiple cookies. Closes gh-23512
-
- 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 2 次提交
-
-
由 John Lin 提交于
Closes gh-23487
-
由 Rossen Stoyanchev 提交于
The use of LinkedCaseInsensitiveMap, going back to 3.0, makes it unnecessary to iterate over keys which can cause ConcurrentModificationException. Closes gh-23460
-
- 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 4 次提交
-
-
由 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
-
由 Juergen Hoeller 提交于
See gh-23366
-
- 30 7月, 2019 5 次提交
-
-
由 Arjen Poutsma 提交于
Added support for status codes that do not occur in HttpStatus in DefaultClientResponseBuilder and made ClientResponse::statusCode ClientHttpResponse::getStatusCode @Nullable. Closed gh-23366
-
由 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 3 次提交
-
-
由 Sam Brannen 提交于
-
由 Sam Brannen 提交于
-
由 Juergen Hoeller 提交于
-
- 17 7月, 2019 2 次提交
-
-
由 Sam Brannen 提交于
-
由 Sebastien Deleuze 提交于
See gh-23219
-
- 16 7月, 2019 2 次提交
-
-
由 Sam Brannen 提交于
See gh-23219
-
由 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
-