use of org.jboss.shrinkwrap.impl.BeansXml in project core by weld.
the class EnhancedListenerShutdownTest method createTestArchive.
@Deployment(name = TEST, managed = false)
public static WebArchive createTestArchive() {
WebArchive war = ShrinkWrap.create(WebArchive.class, "app-test.war").addAsWebInfResource(new BeansXml(), "beans.xml").setWebXML(TEST_WEB_XML);
war.addClasses(InitServlet.class, InfoClient.class, Foo.class, TestListener.class);
return war;
}
use of org.jboss.shrinkwrap.impl.BeansXml in project core by weld.
the class CrossContextForwardTest method createFirstTestArchive.
@Deployment(name = CrossContextForwardTest.FIRST)
public static WebArchive createFirstTestArchive() {
WebArchive war = ShrinkWrap.create(WebArchive.class, "app1.war").addAsWebInfResource(new BeansXml(), "beans.xml").setWebXML(FORWARDING_WEB_XML);
war.addClass(ForwardingServlet.class);
return war;
}
use of org.jboss.shrinkwrap.impl.BeansXml in project core by weld.
the class AbstractBeansXmlLocationTest method getBeansXml.
public static Asset getBeansXml() {
BeansXml beans = new BeansXml();
beans.alternatives(Bar.class);
return beans;
}
Aggregations