1. 26 Jan, 2017 8 commits
  2. 25 Jan, 2017 4 commits
  3. 24 Jan, 2017 12 commits
  4. 22 Jan, 2017 2 commits
  5. 20 Jan, 2017 6 commits
  6. 19 Jan, 2017 8 commits
    • Phillip Webb's avatar
      Polish · b05bdbfe
      Phillip Webb authored
      b05bdbfe
    • Andy Wilkinson's avatar
      Fix LinkageError with ExpectedException and FilteredClassPathRunner · e04ace89
      Andy Wilkinson authored
      Previously, when the ExpectedException JUnit rule was used with
      FilteredClassPathRunner a LinkageError would occur if any of
      ExpectedException's methods that take a Hamcrest Matcher were called.
      This was due to the FilteredClassLoader delegating loading of
      org.junit classes to its parent but not org.hamcrest classes. This
      resulted in JUnit classes loading one version of the Hamcrest class
      and the test class loading another.
      
      This commit ensures that both the JUnit classes and the test class
      use the same version of Hamcrest classes by also delegating the
      loading of org.hamcrest classes to FilteredClassLoader's parent.
      e04ace89
    • Stephane Nicoll's avatar
      Merge pull request #8030 from michael-simons:fix-appendix-b · 9a9c4c75
      Stephane Nicoll authored
      * pr/8030:
        Fix closing parentheses
      9a9c4c75
    • Michael J. Simons's avatar
      Fix closing parentheses · a852c49e
      Michael J. Simons authored
      Closes gh-8030
      a852c49e
    • Stephane Nicoll's avatar
      Improve error message used in TestDatabaseAutoConfiguration · ffa6d6d6
      Stephane Nicoll authored
      By default, `@DataJpaTest` (and `@AutoConfigureTestDatabase`) attempt to
      replace any existing `DataSource` by an embedded one. Previously, if
      there is was no embedded database on the classpath, the exception message
      did not provide that context in the error message.
      
      This commit clarifies the error message to conduct
      `TestDatabaseAutoConfiguration` (that is replacing the existing
      `DataSource`).
      
      Closes gh-7797
      ffa6d6d6
    • Andy Wilkinson's avatar
      Polishing · 80a1e1ae
      Andy Wilkinson authored
      80a1e1ae
    • Andy Wilkinson's avatar
      Update TestRestTemplate to apply template handler to URIs · b7a02e72
      Andy Wilkinson authored
      Previously, TestRestTemplate would only apply the UriTemplateHandler
      to Strings and not to URIs. When using the auto-configured
      TestRestTemplate, this prevented relative URIs from being
      made absolute using LocalHostUriTemplateHandler.
      
      The commit updates TestRestTemplate to turn URIs into Strings before
      passing them to the delegate RestTemplate. Turning them into Strings
      ensures that the delegate calls the UriTemplateHandler.
      
      Closes gh-7891
      b7a02e72
    • Andy Wilkinson's avatar
      Update DevTools' ResourceLoader to delegate to user's custom loader · 6a0fb8e4
      Andy Wilkinson authored
      Previously, when DevTools' was used it would set the application
      context's ResourceLoader and overwrite any custom ResourceLoader that
      had been configured. On the rare occasion when the user had customized
      the ResourceLoader this meant that the customization was lost and
      certain resources would become unavailable.
      
      This commit updates DevTools' ResourceLoader to delegate a custom
      ResourceLoader if one has been configured. If one has not been
      configured it delegates as before, i.e. to
      WebApplicationContextResourceLoader for web applications and to
      DefaultResourceLoader for all others apps.
      
      Closes gh-8010
      6a0fb8e4