diff --git a/tests/test-webapps/test-servlet-spec/test-spec-webapp/src/main/java/com/acme/AnnotationTest.java b/tests/test-webapps/test-servlet-spec/test-spec-webapp/src/main/java/com/acme/AnnotationTest.java index b90f3561d71..fac61a987fd 100644 --- a/tests/test-webapps/test-servlet-spec/test-spec-webapp/src/main/java/com/acme/AnnotationTest.java +++ b/tests/test-webapps/test-servlet-spec/test-spec-webapp/src/main/java/com/acme/AnnotationTest.java @@ -209,6 +209,7 @@ public class AnnotationTest extends HttpServlet __HandlesTypes = Arrays.asList( "javax.servlet.GenericServlet", "javax.servlet.http.HttpServlet", + "com.acme.AsyncListenerServlet", "com.acme.AnnotationTest", "com.acme.RoleAnnotationTest", "com.acme.MultiPartTest", diff --git a/tests/test-webapps/test-servlet-spec/test-spec-webapp/src/main/java/com/acme/AsyncListenerServlet.java b/tests/test-webapps/test-servlet-spec/test-spec-webapp/src/main/java/com/acme/AsyncListenerServlet.java index 5a611a76d55..b828610abc2 100644 --- a/tests/test-webapps/test-servlet-spec/test-spec-webapp/src/main/java/com/acme/AsyncListenerServlet.java +++ b/tests/test-webapps/test-servlet-spec/test-spec-webapp/src/main/java/com/acme/AsyncListenerServlet.java @@ -98,6 +98,7 @@ public class AsyncListenerServlet extends HttpServlet PrintWriter writer = resp.getWriter(); writer.println( ""); + writer.println(""); writer.println( ""); writer.println("

AsyncListener

"); writer.println("
");
@@ -107,14 +108,14 @@ public class AsyncListenerServlet extends HttpServlet
         writer.println("private void postConstruct ()");
         writer.println("{}"); 
         writer.println("
"); - writer.println("
Result: "+listener.isPostConstructCalled()+""); + writer.println("
Result: "+(listener.isPostConstructCalled()?"PASS":"FAIL")+""); writer.println("

@Resource Injection for env-entry

"); writer.println("
");
         writer.println("@Resource(mappedName=\"maxAmount\")");
         writer.println("private Double maxAmount;");
         writer.println("
"); - writer.println("
Result: "+(listener.isResourceInjected()?" PASS":" FAIL")+""); + writer.println("
Result: "+(listener.isResourceInjected()?" PASS":" FAIL")+""); writer.println( ""); writer.println( ""); diff --git a/tests/test-webapps/test-servlet-spec/test-spec-webapp/src/main/webapp/index.html b/tests/test-webapps/test-servlet-spec/test-spec-webapp/src/main/webapp/index.html index 854082f4bd3..405b05f8565 100644 --- a/tests/test-webapps/test-servlet-spec/test-spec-webapp/src/main/webapp/index.html +++ b/tests/test-webapps/test-servlet-spec/test-spec-webapp/src/main/webapp/index.html @@ -54,6 +54,12 @@ Test of the annotation: +

AsyncListener Resource Injection

+

Click the following link to test that javax.servlet.AsyncListeners are injectable

+
+ +
+