This change removes the use of a CountDownLatch to wait for the
asynchronously computed controller method return value. Instead we
check in a loop every 200 milliseconds if the result has been set.
If the result is not set within the specified amount of time to wait
an IllegalStateException is raised.
Additional changes:
- Use AtomicReference to hold the async result
- Remove @Ignore annotations on AsyncTests methods
- Remove checks for the presence of Servlet 3
Issue: SPR-11516
@ -57,15 +55,11 @@ final class TestDispatcherServlet extends DispatcherServlet {
@@ -57,15 +55,11 @@ final class TestDispatcherServlet extends DispatcherServlet {
@ -84,17 +78,6 @@ final class TestDispatcherServlet extends DispatcherServlet {
@@ -84,17 +78,6 @@ final class TestDispatcherServlet extends DispatcherServlet {
@ -80,10 +76,8 @@ public class PrintingResultHandler implements ResultHandler {
@@ -80,10 +76,8 @@ public class PrintingResultHandler implements ResultHandler {
@ -133,11 +127,9 @@ public class PrintingResultHandler implements ResultHandler {
@@ -133,11 +127,9 @@ public class PrintingResultHandler implements ResultHandler {