From 81f22e3873b59cf8c950c269310d2e7ce2131234 Mon Sep 17 00:00:00 2001 From: Simone Bordet Date: Mon, 10 Jun 2019 19:23:04 +0200 Subject: [PATCH] Issue #3748 - @Resource field not injected in Jetty Demo. Adding Jetty 10 specific bits to make the test pass. Signed-off-by: Simone Bordet --- .../org/eclipse/jetty/test/AnnotatedAsyncListenerTest.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/test-integration/src/test/java/org/eclipse/jetty/test/AnnotatedAsyncListenerTest.java b/tests/test-integration/src/test/java/org/eclipse/jetty/test/AnnotatedAsyncListenerTest.java index defdfcfb2a0..553af23cf41 100644 --- a/tests/test-integration/src/test/java/org/eclipse/jetty/test/AnnotatedAsyncListenerTest.java +++ b/tests/test-integration/src/test/java/org/eclipse/jetty/test/AnnotatedAsyncListenerTest.java @@ -23,6 +23,7 @@ import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.StandardOpenOption; + import javax.annotation.Resource; import javax.servlet.AsyncContext; import javax.servlet.AsyncEvent; @@ -47,6 +48,7 @@ import org.eclipse.jetty.util.thread.QueuedThreadPool; import org.eclipse.jetty.webapp.Configuration; import org.eclipse.jetty.webapp.FragmentConfiguration; import org.eclipse.jetty.webapp.MetaInfConfiguration; +import org.eclipse.jetty.webapp.WebAppConfiguration; import org.eclipse.jetty.webapp.WebAppContext; import org.eclipse.jetty.webapp.WebInfConfiguration; import org.eclipse.jetty.webapp.WebXmlConfiguration; @@ -91,7 +93,8 @@ public class AnnotatedAsyncListenerTest new MetaInfConfiguration(), new FragmentConfiguration(), new EnvConfiguration(), - new PlusConfiguration() + new PlusConfiguration(), + new WebAppConfiguration() }); context.addServlet(new ServletHolder(servlet), "/*"); new EnvEntry(context, "value", 1307D, false); @@ -156,4 +159,4 @@ public class AnnotatedAsyncListenerTest { } } -} \ No newline at end of file +}