1. 01 Dec, 2016 1 commit
  2. 30 Nov, 2016 3 commits
    • Andy Wilkinson's avatar
      Ignore Spock annotations when creating test context cache key · 45d672f5
      Andy Wilkinson authored
      Closes gh-7524
      45d672f5
    • Stephane Nicoll's avatar
      Use standard file name for Maven dependencies · c51d836a
      Stephane Nicoll authored
      This commit uses standard files for libraries managed by the repackage
      goal of the Maven plugin. Previously, only the name of the file was used
      which could lead to duplicate libraries if the name of the target file
      deviates from the default. This typically happens when the
      `build.finalName` property is specified on a dependent module.
      
      Note that the `maven-war-plugin` has an additional mechanism to customize
      the file name structure of dependencies. This feature isn't supported by
      the repackage goal so an explicit mention has been added in the
      documentation.
      
      Closes gh-7389
      c51d836a
    • Stephane Nicoll's avatar
      Fix bootstrap-hosts property detection with list · e5ca4990
      Stephane Nicoll authored
      Previously, if `spring.couchbase.bootstrap-hosts` was specified in YAML
      or with the `[Idx]` notation, the auto-configuration would not kick in.
      
      This is due to a limitation of `@ConditionalOnProperty` on a property of
      type Collection. This commit workarounds this limitation for now with a
      dedicated condition.
      
      Closes gh-7508
      e5ca4990
  3. 29 Nov, 2016 2 commits
  4. 28 Nov, 2016 3 commits
  5. 25 Nov, 2016 3 commits
    • Andy Wilkinson's avatar
      Merge pull request #7271 from Aleksander Bartnikiewicz · c6bdd136
      Andy Wilkinson authored
      * gh-7271:
        Test that a broken factory bean does not break resetting of mocks
        Prevent a broken factory bean from breaking the resetting of mocks
      c6bdd136
    • Andy Wilkinson's avatar
      Test that a broken factory bean does not break resetting of mocks · 46e8cf4a
      Andy Wilkinson authored
      Previously, ResetMocksTestExecutionListener used getBean(name) to
      retrieve each instantiated singleton. When the instantiated singleton
      was a factory bean, this would cause getObject on the factory bean to
      be called. If the factory bean was unable to produce its object, for
      example due to test slicing excluding something, an exception would
      be thrown.
      
      The previous commit updated ResetMocksTestsExecutionListener to
      use getSingleton(name) rather than getBean(name).  This will retrieve
      the factory bean itself rather than causing the factory bean to
      attempt to create an object. This commit updates the tests to verify
      the new behaviour.
      
      Closes gh-7270
      46e8cf4a
    • Aleksander Bartnikiewicz's avatar
      eb927f1b
  6. 24 Nov, 2016 8 commits
  7. 23 Nov, 2016 2 commits
    • Andy Wilkinson's avatar
      Treat URLs for same file in nested archive and from jar root as equal · 5e79657d
      Andy Wilkinson authored
      Consider the following two URLs:
      
      jar:file:/test.jar!/BOOT-INF/classes!/foo.txt
      jar:file:/test.jar!/BOOT-INF/classes/foo.txt
      
      They both reference the same foo.txt file in the BOOT-INF/classes
      directory of test.jar, however the first URL does so via the
      nested BOOT-INF/classes archive. Previously, this difference in the
      URLs would lead to PathMatchingResourcePatternResolver returning two
      resources for foo.txt when asked to find all resources matching the
      pattern classpath*:/**/*.txt.
      
      This commit updates our Handler that is used for jar: URLs to consider
      the two URLs above to be equivalent such that url1 is equal to url2
      and the two urls will produce the same hash code.
      
      Closes gh-7449
      5e79657d
    • Stephane Nicoll's avatar
      Add dependency management for hazelcast-client · a5681c01
      Stephane Nicoll authored
      Closes gh-7452
      a5681c01
  8. 22 Nov, 2016 7 commits
  9. 21 Nov, 2016 3 commits
  10. 20 Nov, 2016 1 commit
  11. 18 Nov, 2016 2 commits
  12. 17 Nov, 2016 3 commits
    • Andy Wilkinson's avatar
      Wait for server port to be written in a more robust manner · 5dea4c5a
      Andy Wilkinson authored
      Previously, we just waited for the file to exist before trying to read
      the port from it. This left a window where the file existed but its
      contents had not be written which could result in a
      NumberFormatException.
      
      This commit now waits for the file to have a length that is greater
      than zero.
      
      See gh-7379
      5dea4c5a
    • Andy Wilkinson's avatar
      Polishing: fix Checkstyle warning · 5857010d
      Andy Wilkinson authored
      5857010d
    • Andy Wilkinson's avatar
      Fix remote DevTools' support for adding and removing classes · 918e122d
      Andy Wilkinson authored
      Previously, remote DevTools only correctly supported modifying
      existing classes. New classes that were added would be missed, and
      deleted classes could cause a failure as they would be found by
      component scanning but hidden by RestartClassLoader.
      
      This commit introduces a DevTools-specific ResourcePatternResolver
      that is installed as the application context's resource loader. This
      custom resolver is aware of the files that have been added and
      deleted and modifies the result returned from getResource and
      getResources accordingly.
      
      New intergration tests have been introduced to verify DevTools'
      behaviour. The tests cover four scenarios:
      
      - Adding a new controller
      - Removing an existing controller
      - Adding a request mapping to a controller
      - Removing a request mapping from a controller
      
      These four scenarios are tested with:
      
      - DevTools updating a local application
      - DevTools updating a remote application packaged in a jar file
      - DevTools updating a remote application that's been exploded
      
      Closes gh-7379
      918e122d
  13. 16 Nov, 2016 1 commit
  14. 15 Nov, 2016 1 commit