• Andy Wilkinson's avatar
    Use and wait for a latch to check that the interceptor is called · 337e9bd0
    Andy Wilkinson authored
    Spring MVC drives the postHandle method on any interceptors after the
    response has been sent to the client. This meant that there was a
    race between the test receiving the response and asserting that the
    interceptor had been driven and Spring MVC driving the interceptor.
    
    This commit updates the interceptor to use a CountDownLatch to track
    whether or not it's been called. The test now waits for up to 30
    seconds for the latch to be decremented.
    
    Closes gh-1997
    337e9bd0
Name
Last commit
Last update
docs Loading commit data...
eclipse Loading commit data...
spring-boot Loading commit data...
spring-boot-actuator Loading commit data...
spring-boot-autoconfigure Loading commit data...
spring-boot-cli Loading commit data...
spring-boot-dependencies Loading commit data...
spring-boot-docs Loading commit data...
spring-boot-full-build Loading commit data...
spring-boot-integration-tests Loading commit data...
spring-boot-parent Loading commit data...
spring-boot-samples Loading commit data...
spring-boot-starters Loading commit data...
spring-boot-tools Loading commit data...
spring-boot-versions Loading commit data...
.gitignore Loading commit data...
.settings-template.xml Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
pom.xml Loading commit data...