1. 07 9月, 2016 4 次提交
  2. 06 9月, 2016 6 次提交
  3. 05 9月, 2016 4 次提交
    • S
      Document before/after test execution callbacks in reference manual · 6efb166c
      Sam Brannen 提交于
      Issue: SPR-4365
      6efb166c
    • S
      Introduce concurrency tests for Spring's JUnit 4 support · 2699504c
      Sam Brannen 提交于
      Whereas the existing TestContextConcurrencyTests verify support for
      concurrency in the TestContextManager and TestContext, this commit
      introduces SpringJUnit4ConcurrencyTests that verify support for
      concurrent test execution in Spring's JUnit 4 support, namely in the
      SpringRunner, SpringClassRule, and SpringMethodRule.
      
      The tests executed by this new test class come from a hand-picked
      collection of test classes within the test suite that is intended to
      cover most categories of tests that are currently supported by the
      TestContext Framework on JUnit 4.
      
      Note, however, that the chosen test classes intentionally do not
      include any classes that fall under the following categories.
      
       - tests that make use of Spring's @DirtiesContext support
      
       - tests that make use of JUnit 4's @FixMethodOrder support
      
       - tests that commit changes to the state of a shared in-memory database
      
      Issue: SPR-5863
      2699504c
    • S
      Improve exception msg for inactive test ApplicationContext · e822e4cb
      Sam Brannen 提交于
      This commit improves the exception message thrown when a test's
      ApplicationContext is no longer active by explaining that the cause
      may be due to parallel test execution.
      
      Issue: SPR-5863
      e822e4cb
    • S
      Further improve thread safety for attributes in DefaultTestContext · fbfad869
      Sam Brannen 提交于
      Issue: SPR-5863
      fbfad869
  4. 03 9月, 2016 10 次提交
    • S
      Upgrade to Reactor Core 3.0.2 · 5755b673
      Sebastien Deleuze 提交于
      5755b673
    • V
      Fix AbstractRequestBodyPublisher to comply with the spec · 00617d74
      Violeta Georgieva 提交于
      As per specification "The Subscription MUST allow the Subscriber to
      call Subscription.request synchronously from within onNext or
      onSubscribe". With the current implementation if Subscription.request
      is called more than once when Subscriber.onSubscribe ISE will be
      thrown - java.lang.IllegalStateException: DEMAND.
      With this fix the implementation will not throw ISE and will allow
      many invocations of Subscription.request when
      Subscriber.onSubscribe.
      00617d74
    • B
      Fix null body handling in ResponseEntityResultHandler · 01bd8b9e
      Brian Clozel 提交于
      This commit fixes `ResponseEntityResultHandler` so that it only tries to
      call `writeBody` if the `ResponseEntity` is not null. In case the
      response entity body is null, the response is flushed right away and the
      request is signaled as handled.
      
      Issue: SPR-14663
      01bd8b9e
    • S
      Support concurrent execution in TestContextManager & DefaultTestContext · a10a8e56
      Sam Brannen 提交于
      Prior to this commit, executing tests concurrently in the TestContext
      Framework (TCF) was unsupported and typically lead to unpredictable
      results.
      
      This commit addresses this core issue by supporting concurrent
      execution in the TestContextManager and the DefaultTestContext.
      
      Specifically, the TestContextManager now uses ThreadLocal storage for
      the current TestContext, thereby ensuring that any registered
      TestExecutionListeners and the TestContextManager itself operate on a
      TestContext specific to the current thread.
      
      In order to avoid repeatedly incurring the costs of the overhead of the
      TCF bootstrapping process, the original TestContext built by the
      TestContextBootstrapper is used as a template which is then passed to
      the copy constructor of the concrete implementation of the TestContext
      to create the context for the current thread. DefaultTestContext now
      implements such a copy constructor, and all concrete implementations of
      TestContext are encouraged to do the same.
      
      If the TestContext built by the TestContextBootstrapper does not
      provide a copy constructor, thread-safety and support for concurrency
      are left completely to the implementation of the concrete TestContext.
      
      Note, however, that this commit does not address any thread-safety or
      concurrency issues in the ContextLoader SPI or its implementations.
      
      Issue: SPR-5863
      a10a8e56
    • S
      Improve concurrency in DefaultTestContext regarding attributes · ec7aefa8
      Sam Brannen 提交于
      This commit inlines the basic implementation of AttributeAccessorSupport
      and converts the LinkedHashMap to a ConcurrentHashMap.
      
      In addition, attributes are now included in toString().
      
      Issue: SPR-5863
      ec7aefa8
    • S
      Polishing · 5fe3bcf8
      Sam Brannen 提交于
      5fe3bcf8
    • R
      Add @since tags · c813405c
      Rossen Stoyanchev 提交于
      c813405c
    • R
      Add MockServerHttpRequest/Response to spring-test · a1ac5125
      Rossen Stoyanchev 提交于
      Issue: SPR-14421
      a1ac5125
    • R
      Refactor location of MockServerHttpRequest/Response · 73752c29
      Rossen Stoyanchev 提交于
      This change puts the MockHttpServerRequest/Response under
      org.springframework.mock.http.server.reactive.test which
      mirrors the arrangement we have with the Servlet mock equivalents
      and sets up the addition of MockHttpServerRequest/Response in
      spring-test.
      
      Issue: SPR-14421
      73752c29
    • R
      Polish MockServerHttpRequest · e17132c2
      Rossen Stoyanchev 提交于
      Issue: SPR-14421
      e17132c2
  5. 02 9月, 2016 11 次提交
  6. 01 9月, 2016 5 次提交