Package juzu.impl.bridge

Examples of juzu.impl.bridge.DescriptorBuilder


public class AuthenticatedTestCase extends AbstractWebTestCase {

  @Deployment
  public static WebArchive createDeployment() {

    DescriptorBuilder def = DescriptorBuilder.DEFAULT.servletApp("juzu.authenticated");


    //
    DescriptorBuilder desc = new DescriptorBuilder(def) {

      @Override
      protected void appendWebXmlFooter(StringBuilder buffer) {
        buffer.append("" +
            "<security-constraint>\n" +
View Full Code Here


/** @author Julien Viet */
public class ProvidedCDITestCase extends AbstractWebTestCase {

  @Deployment(testable = false)
  public static WebArchive createDeployment() {
    DescriptorBuilder config = DescriptorBuilder.DEFAULT.
        injector(InjectorProvider.CDI).
        servletApp("bridge.inject.providedcdi").
        listener("org.jboss.weld.environment.servlet.Listener").embedPortletContainer().
        resourceEnvRef("BeanManager", "javax.enterprise.inject.spi.BeanManager");
    WebArchive war = createServletDeployment(config, true);
View Full Code Here

/** @author <a href="mailto:julien.viet@exoplatform.com">Julien Viet</a> */
public class WeatherPortletTestCase extends WeatherTestCase {

  @Deployment
  public static WebArchive deployment() {
    DescriptorBuilder desc = DescriptorBuilder.DEFAULT.
        injector(InjectorProvider.SPRING).
        embedPortletContainer().
        listener("org.springframework.web.context.ContextLoaderListener");
    String webXml = desc.toWebXml();
    WebArchive war = ShrinkWrap.create(WebArchive.class);
    war.setWebXML(new StringAsset(webXml));
    war.addAsWebInfResource(new File("src/test/resources/applicationContext.xml"));
    war.addAsWebInfResource(new File("src/main/webapp/WEB-INF/portlet.xml"));
    war.addPackages(true, "examples.tutorial");
View Full Code Here

TOP

Related Classes of juzu.impl.bridge.DescriptorBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.