1. 15 Sep, 2016 15 commits
    • Phillip Webb's avatar
      Generate property meta-data for test projects · ebb08c36
      Phillip Webb authored
      Add annotation processor to `spring-boot-test` and
      `spring-boot-test-autoconfigure`.
      
      Fixes gh-6893
      ebb08c36
    • Andy Wilkinson's avatar
      Upgrade Elasticsearch to 2.4 and restore use of Jackson 2.8 · 045f3571
      Andy Wilkinson authored
      In 1.4.0 we used Elasticsearch 2.3.5 and Jackson 2.8. This
      combination was incompatible in some circumstances due to a change
      in Jackson (gh-6508). With Elasticsearch 2.4 yet to be released at the
      time, the only way to restore compatibility was to downgrade Jackson.
      
      With the release of Elasticsearch 2.4 we have another option: revert
      the Jackson downgrade and upgrade Elasticsearch instead. While we
      normally wouldn't consider upgrading to a new minor version of a
      dependency in a maintenance release we have to do something to restore
      compatibility. The alternative is to downgrade Jackson but that will
      affect more people (Jackson is more widely used than Elasticsearch)
      and will lose some functionality that was new in Jackson 2.8 that
      people may already be relying upon.
      
      This commit restores the use of Jackson 2.8 – including the
      2.8-specific dependency management – and upgrades to Elasticsearch 2.4
      
      Closes gh-6868
      045f3571
    • Andy Wilkinson's avatar
      Fix LegacyCookieProcessor configuration example and test it · 28ea6fd3
      Andy Wilkinson authored
      Closes gh-6827
      28ea6fd3
    • Andy Wilkinson's avatar
      Merge branch '1.3.x · 5c632dfc
      Andy Wilkinson authored
      5c632dfc
    • Andy Wilkinson's avatar
      Update docs to note that Gradle 3 is not supported · 30cb15a0
      Andy Wilkinson authored
      Breaking API changes in Gradle 3.0 make it impossible to support
      it reliably alongside Gradle 1 and 2 without mainintaining multiple
      versions of our Gradle plugin. This commit updates the documentation
      to note that Gradle 3 is not supported.
      
      Closes gh-6880
      30cb15a0
    • Andy Wilkinson's avatar
      Merge branch '1.3.x · 4d2e557f
      Andy Wilkinson authored
      4d2e557f
    • Andy Wilkinson's avatar
      Allow spring.config.location to be configured via servlet context · b8833c40
      Andy Wilkinson authored
      Previously, in a war deployment, the web environment’s property sources
      were initialized using the servlet context after the application’s
      configuration had been read by ConfigFileApplicationListener. This
      meant that spring.config.location configured via the servlet context
      had no effect.
      
      This commit adds a new ApplicationListener,
      ServletContextApplicationListener, that initialises the configurable
      web environment’s property sources using the servlet context. It’s
      ordered with higher precedence than ConfigFileApplicationListener to
      ensure that any properties defined in the servlet context are available
      when loading the application’s configuration.
      
      Closes gh-6801
      b8833c40
    • Andy Wilkinson's avatar
    • Stephane Nicoll's avatar
      Polish cache doc · 7e263d89
      Stephane Nicoll authored
      Closes gh-6892
      7e263d89
    • Andy Wilkinson's avatar
      Fail fast if @WebAppConfiguration is used with a non-mock web environement · 7b3382e3
      Andy Wilkinson authored
      @WebAppConfiguration expects a mock web environment. If it is used
      in conjuction with @SpringBootTest configured with a RANDOM_PORT or
      DEFINED_PORT web environment a null pointer exception occurs as an
      assumption that's made by MockServerContainerContextCustomizer doesn't
      hold true in a non-mock web environment.
      
      This commit updates SpringBootTestContextBootstrap to detect the
      illegal configuration combination and fail fast, advising the user
      to remove @WebAppConfiguration or reconfigure @SpringBootTest.
      
      Closes gh-6795
      7b3382e3
    • Stephane Nicoll's avatar
      Polish · 8470ecb4
      Stephane Nicoll authored
      8470ecb4
    • Phillip Webb's avatar
      Ensure test @PostConstructs are only called once · 71345863
      Phillip Webb authored
      Rename AutoConfigureReportTestExecutionListener to
      SpringBootDependencyInjectionTestExecutionListener and ensure that it
      replaces any existing DependencyInjectionTestExecutionListener.
      
      Prior to this commit the registration of two DependencyInjection
      listeners would cause @PostConstruct methods on tests to be called
      twice.
      
      In order to allow the standard DependencyInjectionTestExecutionListener
      to be removed a new DefaultTestExecutionListenersPostProcessor interface
      has been introduced.
      
      Fixes gh-6874
      71345863
    • Phillip Webb's avatar
      Document how to use LegacyCookieProcessor · 3d89dabb
      Phillip Webb authored
      Closes gh-6827
      3d89dabb
    • Phillip Webb's avatar
      Allow default profile to also be set in properties · 06064286
      Phillip Webb authored
      Update `ConfigFileApplicationListener` so that active profiles set in
      properties files that overlap with `spring.profiles.default` can still
      be set.
      
      Prior to this commit if `spring.profiles.active` happened to specify
      a profile name that was also in `spring.profiles.default` it would
      not get applied.
      
      Fixes gh-6833
      06064286
    • Phillip Webb's avatar
      Fix failing test following Tomcat upgrade · dcfe2673
      Phillip Webb authored
      Tomcat 8.5.5 has change the default value of `validationInterval` to
      3000. See https://bz.apache.org/bugzilla/show_bug.cgi?id=59923 for
      details.
      
      See gh-6703
      See gh-6657
      dcfe2673
  2. 14 Sep, 2016 5 commits
  3. 13 Sep, 2016 2 commits
  4. 12 Sep, 2016 14 commits
  5. 09 Sep, 2016 4 commits