@Test(expected = IllegalStateException.class) public void setTimeoutDuringConcurrentHandling() { this.asyncRequest.startAsync(); this.asyncRequest.setTimeout(25L); }
@Before public void setup() { this.request = new MockHttpServletRequest(); this.request.setAsyncSupported(true); this.response = new MockHttpServletResponse(); this.asyncRequest = new StandardServletAsyncWebRequest(this.request, this.response); this.asyncRequest.setTimeout(44*1000L); }