Skip to content

Instantly share code, notes, and snippets.

@maggandalf
Last active August 29, 2015 13:56
Show Gist options
  • Save maggandalf/9033845 to your computer and use it in GitHub Desktop.
Save maggandalf/9033845 to your computer and use it in GitHub Desktop.
@Deployment(testable = false)
public static Archive<WebArchive> createDeployment() {
return ShrinkWrap.create(UndertowWebArchive.class).from(
deployment()
.setContextPath("/myapp")
.setDeploymentName("test.war")
.setClassLoader(
EmbeddedUndertowClientWebContainerTest.class
.getClassLoader())
.addServlet(
servlet("MessageServlet", MessageServlet.class)
.addInitParam("message", "Hello World")
.addMapping(SERVLET_MAPPING)
)
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment