Issue #3748 - @Resource field not injected in Jetty Demo.

Adding Jetty 10 specific bits to make the test pass.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
Simone Bordet 2019-06-10 19:23:04 +02:00
parent 68a9498092
commit 81f22e3873
1 changed files with 5 additions and 2 deletions

View File

@ -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
{
}
}
}
}