1. 28 8月, 2019 3 次提交
  2. 23 8月, 2019 3 次提交
  3. 21 8月, 2019 1 次提交
  4. 20 8月, 2019 3 次提交
  5. 09 8月, 2019 1 次提交
  6. 07 8月, 2019 1 次提交
  7. 31 7月, 2019 3 次提交
  8. 30 7月, 2019 4 次提交
  9. 29 7月, 2019 1 次提交
  10. 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
  11. 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
  12. 23 7月, 2019 1 次提交
  13. 21 7月, 2019 3 次提交
  14. 18 7月, 2019 2 次提交
  15. 17 7月, 2019 1 次提交
  16. 16 7月, 2019 1 次提交
    • 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
  17. 12 7月, 2019 3 次提交
    • S
      Polishing · 09c10232
      Sam Brannen 提交于
      See gh-23224
      09c10232
    • R
      Fix http URLs · fde92793
      Rob Winch 提交于
      See gh-22839
      fde92793
    • S
      Change @TestConstructor.autowire attribute into an enum · fc38bb4f
      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
      fc38bb4f
  18. 08 7月, 2019 2 次提交
    • S
      08a5196c
    • S
      Add body methods with Object parameter to WebFlux · 2b4d6ce3
      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
      2b4d6ce3
  19. 18 6月, 2019 2 次提交