1. 28 8月, 2019 2 次提交
  2. 27 8月, 2019 1 次提交
    • S
      Allow Set-Cookie header to be overwritten in MockHttpServletResponse · 8189c907
      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
      8189c907
  3. 23 8月, 2019 3 次提交
  4. 21 8月, 2019 2 次提交
  5. 20 8月, 2019 3 次提交
  6. 09 8月, 2019 1 次提交
  7. 07 8月, 2019 1 次提交
  8. 31 7月, 2019 4 次提交
  9. 30 7月, 2019 5 次提交
  10. 29 7月, 2019 1 次提交
  11. 28 7月, 2019 4 次提交
    • S
      Polish MergedTestPropertySources · bfbe8f87
      Sam Brannen 提交于
      bfbe8f87
    • S
      Update @TestPropertySource Javadoc regarding "local" semantics · 19548618
      Sam Brannen 提交于
      See gh-23320
      19548618
    • S
      Overhaul repeatable @TestPropertySource support · 136af0b1
      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
      136af0b1
    • A
      Support @TestPropertySource as a repeatable annotation · 2e476ca1
      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
      2e476ca1
  12. 24 7月, 2019 1 次提交
    • S
      Add multi-prefix comment support for @SqlConfig · c3c152f8
      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
      c3c152f8
  13. 23 7月, 2019 1 次提交
  14. 21 7月, 2019 3 次提交
  15. 18 7月, 2019 3 次提交
  16. 17 7月, 2019 2 次提交
  17. 16 7月, 2019 2 次提交
    • S
      Polish contribution · b2b79ae1
      Sam Brannen 提交于
      See gh-23219
      b2b79ae1
    • S
      Improve charset handling in MockHttpServletResponse · adadffe0
      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
      adadffe0
  18. 12 7月, 2019 1 次提交