Search in sources :

Example 26 with BeansXml

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;
}
Also used : WebArchive(org.jboss.shrinkwrap.api.spec.WebArchive) BeansXml(org.jboss.shrinkwrap.impl.BeansXml) OperateOnDeployment(org.jboss.arquillian.container.test.api.OperateOnDeployment) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 27 with BeansXml

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;
}
Also used : WebArchive(org.jboss.shrinkwrap.api.spec.WebArchive) BeansXml(org.jboss.shrinkwrap.impl.BeansXml) OperateOnDeployment(org.jboss.arquillian.container.test.api.OperateOnDeployment) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 28 with BeansXml

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;
}
Also used : BeansXml(org.jboss.shrinkwrap.impl.BeansXml)

Aggregations

BeansXml (org.jboss.shrinkwrap.impl.BeansXml)28 Deployment (org.jboss.arquillian.container.test.api.Deployment)25 JavaArchive (org.jboss.shrinkwrap.api.spec.JavaArchive)22 WebArchive (org.jboss.shrinkwrap.api.spec.WebArchive)12 WeldSEClassPath (org.jboss.weld.environment.se.test.arquillian.WeldSEClassPath)10 OperateOnDeployment (org.jboss.arquillian.container.test.api.OperateOnDeployment)4 ShouldThrowException (org.jboss.arquillian.container.test.api.ShouldThrowException)2 BeanArchive (org.jboss.shrinkwrap.api.BeanArchive)2 Deployments.baseDeployment (org.jboss.weld.environment.servlet.test.util.Deployments.baseDeployment)2 ArrayList (java.util.ArrayList)1 Extension (javax.enterprise.inject.spi.Extension)1 StringAsset (org.jboss.shrinkwrap.api.asset.StringAsset)1 Exclude (org.jboss.shrinkwrap.impl.BeansXml.Exclude)1 TDAO (org.jboss.weld.tests.interceptors.lhotse.fst.TDAO)1 TxInterceptor (org.jboss.weld.tests.interceptors.lhotse.fst.TxInterceptor)1 CDAO (org.jboss.weld.tests.interceptors.lhotse.snd.CDAO)1