1. 24 Jan, 2017 4 commits
  2. 22 Jan, 2017 2 commits
  3. 20 Jan, 2017 6 commits
  4. 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
  5. 18 Jan, 2017 5 commits
  6. 17 Jan, 2017 5 commits
    • Andy Wilkinson's avatar
      Ensure that JarResourceManager correctly handles path without leading / · 2a5586fb
      Andy Wilkinson authored
      Previously, JarResourceManager assumed that the path would begin with
      a / but this isn't always the case. For example, it may be an empty
      string. This could lead to a malformed jar:file: URL that used ! as
      the separator rather than the required !/.
      
      This commit updates JarResourceManager to prepend / to any path that
      does not being with one before using it to construct the URL.
      
      Closes gh-7717
      2a5586fb
    • Andy Wilkinson's avatar
      Improve the documentation of Health.Status constants · a02c2d41
      Andy Wilkinson authored
      Closes gh-7784
      a02c2d41
    • Andy Wilkinson's avatar
      Document breakpoint config for remote debug tunnel and IntelliJ IDEA · 9695e0a9
      Andy Wilkinson authored
      Closes gh-7732
      See gh-5047
      9695e0a9
    • Andy Wilkinson's avatar
      0463350d
    • Andy Wilkinson's avatar
      Make FileSystemWatcherTests.waitsForPollingInterval more robust · 69320180
      Andy Wilkinson authored
      The intent of the test is to:
      
      1. Make a change
      2. Sleep for long enough for that change to be picked up
      3. Make another change
      4. Stop that watcher after 1 further scan has been performed
      5. Assert that a further scan was performed by checking that two
         separate sets of changes (step 1 and step 3) have been picked up
      
      Previously, step 2 relied on simply sleeping for a period of time
      longer than the polling interval. In reality, the polling interval
      is only a minimum time between scans and the actual time between them
      depends on thread scheduling, GC pauses, etc. This lead to the
      test failing intermittently if the scan didn't happen in a timely
      manner.
      
      This commit removes the sleep and replaces it with a while loop that
      waits for first change to be picked up. This ensures that the second
      change will be detected separately from the first and that two
      separate change sets should always be available once the watcher has
      stopped.
      
      See gh-7782
      69320180
  7. 16 Jan, 2017 9 commits
  8. 13 Jan, 2017 1 commit