Package org.richfaces.deployment

Examples of org.richfaces.deployment.CoreDeployment


    @ArquillianResource
    private JavascriptExecutor executor;

    @Deployment
    public static WebArchive createDeployment() {
        CoreDeployment deployment = new CoreDeployment(ITJavaScriptServiceAjax.class);
//        deployment.withWholeCore();

        addIndexPage(deployment);

        return deployment.getFinalArchive();
    }
View Full Code Here


@Ignore("RF-13290 test fails after upgrade to 1.0.17 (probably Warp issue)")
public class ITPushFilter extends AbstractPushTest {

    @Deployment
    public static WebArchive createDeployment() {
        CoreDeployment deployment = createBasicDeployment(ITPushFilter.class);

        deployment.webXml(new Function<WebAppDescriptor, WebAppDescriptor>() {
            public WebAppDescriptor apply(WebAppDescriptor webXml) {
                return webXml
                        .createFilter()
                            .filterName(PushFilter.class.getSimpleName())
                            .filterClass(PushFilter.class.getName())
                            .asyncSupported(true)
                        .up()
                        .createFilterMapping()
                            .filterName(PushFilter.class.getSimpleName())
                            .servletName(FacesServlet.class.getSimpleName())
                        .up();
            }
        });

        return deployment.getFinalArchive();
    }
View Full Code Here

@Ignore("The test is unstable, https://issues.jboss.org/browse/RF-13888")
public class ITAutoRegisteredPushServletWithoutWarp extends AbstractPushTestWithoutWarp {

    @Deployment
    public static WebArchive createDeployment() {
        CoreDeployment deployment = createBasicDeployment(ITAutoRegisteredPushServletWithoutWarp.class);
        return deployment.getFinalArchive();
    }
View Full Code Here

@Ignore("RF-13290 test fails after upgrade to 1.0.17 (probably Warp issue)")
public class ITPushServletMapping extends AbstractPushTest {

    @Deployment
    public static WebArchive createDeployment() {
        CoreDeployment deployment = createBasicDeployment(ITPushServletMapping.class);

        deployment.webXml(new Function<WebAppDescriptor, WebAppDescriptor>() {
            public WebAppDescriptor apply(WebAppDescriptor webXml) {
                return webXml
                        .createServlet()
                            .servletName(PushServlet.class.getSimpleName())
                            .servletClass(PushServlet.class.getName())
                            .asyncSupported(true)
                        .up()
                        .createServletMapping()
                            .servletName(PushServlet.class.getSimpleName())
                            .urlPattern("/__custom_mapping")
                        .up()
                        .createContextParam()
                            .paramName("org.richfaces.push.handlerMapping")
                            .paramValue("/__custom_mapping")
                        .up();
            }
        });

        return deployment.getFinalArchive();
    }
View Full Code Here

    private static final String FORM_ID = "form1";
    private static final List<String> EVENT_CALLBACKS = Arrays.asList(new String[]{ "ajaxsubmit", "ajaxbegin", "ajaxbeforedomupdate", "ajaxcomplete" });

    @Deployment(testable = false)
    public static WebArchive deployment() {
        CoreDeployment deployment = new CoreDeployment(ITAjaxSubmissionCallbacks.class);
        deployment.withA4jComponents();
       
        deployment.archive().addAsWebResource(buildPage(true, true), "documentAndFormScoped.xhtml");
        deployment.archive().addAsWebResource(buildPage(true, false), "formScoped.xhtml");
        deployment.archive().addAsWebResource(buildPage(false, true), "documentScoped.xhtml");

        return deployment.getFinalArchive();
    }
View Full Code Here

@Ignore("RF-13290 test fails after upgrade to 1.0.17 (probably Warp issue)")
public class ITAutoRegisteredPushServlet extends AbstractPushTest {

    @Deployment
    public static WebArchive createDeployment() {
        CoreDeployment deployment = createBasicDeployment(ITAutoRegisteredPushServlet.class);
        return deployment.getFinalArchive();
    }
View Full Code Here

    @ArquillianResource
    private JavascriptExecutor executor;

    @Deployment(testable = false)
    public static WebArchive deployment() {
        CoreDeployment deployment = new CoreDeployment(ITAjaxCallbacksScope.class);
//        deployment.withWholeCore();

        addIndexPage(deployment);

        return deployment.getFinalArchive();
    }
View Full Code Here

    @FindBy(tagName = "span")
    WebElement message;

    @Deployment(testable = false)
    public static WebArchive createDeployment() {
        CoreDeployment deployment = new CoreDeployment(ITEhCache.class);
        deployment.archive().addClasses(EhCacheBean.class);
        addIndexPage(deployment);

        return deployment.getFinalArchive();
    }
View Full Code Here

    @ArquillianResource
    private URL contextPath;

    @Deployment(testable = false)
    public static WebArchive createDeployment() {
        CoreDeployment deployment = new CoreDeployment(ITTestBase.class);
        addIndexPage(deployment);

        return deployment.getFinalArchive();
    }
View Full Code Here

    @FindBy(id = "richfacesAjax")
    private WebElement richfacesAjax;

    @Deployment(testable = false)
    public static WebArchive createDeployment() {
        CoreDeployment deployment = new CoreDeployment(ITStatelessViews.class);

        deployment.withWholeFramework();

        addIndexPage(deployment);

        return deployment.getFinalArchive();
    }
View Full Code Here

TOP

Related Classes of org.richfaces.deployment.CoreDeployment

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.