1. 05 5月, 2019 1 次提交
  2. 30 4月, 2019 1 次提交
    • S
      Deprecate MediaType.APPLICATION_JSON_UTF8 · 89454e69
      Sebastien Deleuze 提交于
      This commit deprecates MediaType.APPLICATION_JSON_UTF8 and
      MediaType.APPLICATION_PROBLEM_JSON_UTF8 in favor of
      MediaType.APPLICATION_JSON and MediaType.APPLICATION_PROBLEM_JSON since
      UTF-8 encoding is now handled correctly by most browsers
      (related bug has been fixed in Chrome since September 2017).
      
      MediaType.APPLICATION_JSON is now used as the default JSON content type.
      
      Closes gh-22788
      89454e69
  3. 23 3月, 2019 1 次提交
  4. 22 3月, 2019 1 次提交
  5. 18 10月, 2017 1 次提交
  6. 30 9月, 2017 1 次提交
  7. 10 6月, 2017 1 次提交
    • R
      Refactor RequestedContentTypeResolverBuilder · 01a92517
      Rossen Stoyanchev 提交于
      The revised builder emphasizes creating a list of resolvers either
      built-in or custom with each top-level builder method resulting in
      adding a resolver.
      
      By default only the Header resolver is configured.
      
      The path extension resolver is removed altogether to discourage its use
      but is trivial to create manually with the helpf of
      UriUtils#extractFileExtension + MediaTypeFactory.
      
      Issue: SPR-15639
      01a92517
  8. 07 6月, 2017 1 次提交
    • J
      Consistent use of @Nullable across the codebase (even for internals) · f813712f
      Juergen Hoeller 提交于
      Beyond just formally declaring the current behavior, this revision actually enforces non-null behavior in selected signatures now, not tolerating null values anymore when not explicitly documented. It also changes some utility methods with historic null-in/null-out tolerance towards enforced non-null return values, making them a proper citizen in non-null assignments.
      
      Some issues are left as to-do: in particular a thorough revision of spring-test, and a few tests with unclear failures (ignored as "TODO: NULLABLE") to be sorted out in a follow-up commit.
      
      Issue: SPR-15540
      f813712f
  9. 30 5月, 2017 1 次提交
  10. 25 3月, 2017 1 次提交
    • R
      Collape ServerHttpMessage[Reader|Writer] · 5414cd0c
      Rossen Stoyanchev 提交于
      This commit folds ServerHttpMessage[Reader|Writer] into its parent
      HttpMessage[Reader|Writer] with the server methods pre-implemented
      by default to be simple pass-through delegates.
      5414cd0c
  11. 23 3月, 2017 1 次提交
    • R
      String encoding for any MIME type · 3d68c496
      Rossen Stoyanchev 提交于
      CharSequenceEncoder now supports all MIME types, however since encoding
      Flux<String> can overlap with other encoders (e.g. SSE) there are now
      two ways to create a CharSequenceEncoder -- with support for text/plain
      only or with support for any MIME type.
      
      In WebFlux configuration we insert one CharSequenceEncoder for
      text/plain (as we have so far) and a second instance with support for
      any MIME type at the very end.
      
      Issue: SPR-15374
      3d68c496
  12. 21 3月, 2017 2 次提交
    • R
      @EnableWebFlux uses ServerHttpMessage[Reader|Writer] · 54013a09
      Rossen Stoyanchev 提交于
      ServerHttpMessage[Reader|Writer] are now expected for WebFlux,
      annotated controller endpoint and subsequently the instanceof checks
      for HttpMessage[Reader|Writer] vs ServerHttpMessage[Reader|Writer] can
      be removed from AbstractMessageReaderArgumentResolver and
      AbtractMessageWriterResultHandler.
      54013a09
    • R
      Update tests to new mime types · 1329ccf1
      Rossen Stoyanchev 提交于
      This commit updates the test code base to conform to changes in media
      types returned by the MediaTypeFactory.
      
      Issue: SPR-14908
      1329ccf1
  13. 18 3月, 2017 1 次提交
  14. 16 3月, 2017 1 次提交
  15. 06 3月, 2017 1 次提交
  16. 04 3月, 2017 2 次提交
    • R
      Move ResolvableMethod · 6950cc0e
      Rossen Stoyanchev 提交于
      From spring-webflux to spring-web test sources since it is perfectly
      usable for testing Spring MVC annotation method support.
      
      Potentially to be promoted further up for use in any module that has
      annotation method support. It has spring-core dependencies only
      6950cc0e
    • R
      Refactor ResolvableMethod · 8ed22394
      Rossen Stoyanchev 提交于
      8ed22394
  17. 21 2月, 2017 1 次提交
  18. 08 2月, 2017 1 次提交
    • R
      Improve writing in mock reactive request and response · f2967467
      Rossen Stoyanchev 提交于
      Before this change the write Publisher was saved and Mono.empty()
      returned from the write metohd which did not properly implement
      the write contract since no writing ("consuming") was done.
      
      This can be a problem in some cases. For example the request may appear
      to succeed even if the publisher produces an error later when
      subscribed to later after request handling completes.
      
      This commit introduces a writeHandler function in the mock request and
      response. By default it "writes" by consuming the content immediately,
      which allows it to return a Mono<Void> that properly reflects when
      writing is done, and it also caches the data so it may be replayed
      later for test assertions.
      
      For streaming scenario a custom writeHandler may be registered which
      allows the custom handling to determine how long to stream before
      cancelling so request handling may complete.
      
      Issue: SPR-14590
      f2967467
  19. 02 2月, 2017 1 次提交
  20. 14 1月, 2017 1 次提交
    • R
      Refactor reactive mock request and response support · ba3cc535
      Rossen Stoyanchev 提交于
      MockServerHttpRequest and MockServerHttpResponse now extend the same
      abstract base classes that server-specific implementations do and
      therefore approximate their behavior more closely.
      
      As an immediate consequence MockServerHttpRequest is read-only after
      it is created. Instead it now exposes static builder methods similar
      to those found in RequestEntity. This enforces more strictness as well
      as recycling of requests in tests and provides nicer builder methods.
      
      To simplify tests DefaultServerWebExchange now offers a constructor
      with just a request and response, and automatically creating a
      DefaultWebSessionManager.
      
      The spring-test module now also contains client-side reactive mock
      request and response implementations. The mock client request extends
      the same AbstractClientHttpRequest as client-specific implementations
      do. There is no abstract base class for client responses.
      
      Issue: SPR-14590
      ba3cc535
  21. 04 11月, 2016 1 次提交
  22. 03 11月, 2016 1 次提交
  23. 02 11月, 2016 1 次提交
  24. 25 10月, 2016 1 次提交
    • B
      Refactor tests with ScriptedSubscriber · 99a32108
      Brian Clozel 提交于
      Reactor recently added the `ScriptedSubscriber` in its new
      `reactor-addons` module. This `Subscriber` revissits the previous
      `TestSubscriber` with many improvements, including:
      
      * scripting each expectation
      * builder API that guides you until the final verification step
      * virtual time support
      
      This commit refactor all existing tests to use this new
      infrastructure and removed the `TestSubscriber` implementation.
      
      Issue: SPR-14800
      99a32108
  25. 03 9月, 2016 2 次提交
  26. 01 9月, 2016 1 次提交
    • S
      Add support for RxJava 2 · 48d67a24
      Sebastien Deleuze 提交于
      This commit adds support for RxJava 2 Completable,
      Single, Observable and Flowable types (io.reactivex package).
      
      Issue: SPR-14628
      48d67a24
  27. 08 8月, 2016 1 次提交
    • S
      Anticipate reactor.test.TestSubscriber removal · 5531e807
      Sebastien Deleuze 提交于
      reactor.test.TestSubscriber will not be part of Reactor Core
      3.0.0 since it needs to be refactored to fit all the needs
      expressed by the users. It is likely to be back later in one
      of the Reactor Core 3.0.x releases.
      
      This commit anticipate this removal by temporarily copying
      TestSubscriber in spring-core test classes. As soon as
      the new TestSubscriber will be available in Reactor Core,
      Spring Framework reactive tests will use it again.
      5531e807
  28. 28 7月, 2016 1 次提交
  29. 26 7月, 2016 1 次提交
  30. 23 7月, 2016 3 次提交
  31. 21 7月, 2016 1 次提交
  32. 20 7月, 2016 1 次提交
  33. 19 7月, 2016 1 次提交
  34. 16 7月, 2016 1 次提交
  35. 08 7月, 2016 1 次提交