Examples of RichDeployment


Examples of org.richfaces.integration.RichDeployment

    @ArquillianResource
    private URL contextPath;

    @Deployment
    public static WebArchive createDeployment() {
        RichDeployment deployment = new RichDeployment(ITPanelMenu.class);
        deployment.archive()
            .addClasses(PanelMenuBean.class, VerifyMenuAction.DidNotOccur.class, VerifyMenuAction.DidNotOccur.class)
            .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
        addDisabledMenuItemPage(deployment);
        addDisabledMenuGroupPage(deployment);
        addDisabledMenuGroupPageClient(deployment);
        addDisabledMenuGroupPageExpanded(deployment);
        addDisabledMenuPage(deployment);

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

Examples of org.richfaces.integration.RichDeployment

    @FindBy(id = "frm:msg")
    WebElement serverSideInfo;

    @Deployment(testable = false)
    public static WebArchive createDeployment() {
        RichDeployment deployment = new RichDeployment(ITChartBasic.class);
        deployment.archive().addClasses(ChartBean.class).addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
        addIndexPage(deployment);
        return deployment.getFinalArchive();
    }
View Full Code Here

Examples of org.richfaces.integration.RichDeployment

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

    @Deployment(testable = false)
    public static WebArchive createDeployment() {
        RichDeployment deployment = new RichDeployment(ITColumnsOrder.class);
        deployment.archive().addClass(IterationBean.class);
        addIndexPage(deployment);

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

Examples of org.richfaces.integration.RichDeployment

    @ArquillianResource
    private URL contextPath;

    @Deployment(testable = false)
    public static WebArchive createDeployment() {
        RichDeployment deployment = new RichDeployment(ITDisablingBuiltinSortingAndFiltering.class);
        deployment.archive().addClass(IterationBuiltInBean.class);
        addIndexPage(deployment);
        deployment.webXml(new Function<WebAppDescriptor, WebAppDescriptor>() {
            @Override
            public WebAppDescriptor apply(@Nullable WebAppDescriptor input) {
                input
                    .createContextParam()
                        .paramName("org.richfaces.builtin.sort.enabled")
                        .paramValue("false")
                    .up()
                    .createContextParam()
                        .paramName("org.richfaces.builtin.filter.enabled")
                        .paramValue("false")
                    .up();
                return input;
            }
        });


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

Examples of org.richfaces.integration.RichDeployment

        }
    };

    @Deployment
    public static WebArchive createDeployment() {
        RichDeployment deployment = new RichDeployment(ITFocusManager.class);

        deployment.archive().addClasses(ComponentBean.class, VerifyFocusCandidates.class, VerifyFocusEnforcing.class,
                VerifyFocusEnforcingOverridesFocusSettings.class, AbstractComponentAssertion.class);
        deployment.archive().addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");

        addIndexPage(deployment);
        addViewFocusPage(deployment);
        addFormFocusIndexPage(deployment);

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

Examples of org.richfaces.integration.RichDeployment

    @ArquillianResource
    private URL contextPath;

    @Deployment(testable = false)
    public static WebArchive createDeployment() {
        RichDeployment deployment = new RichDeployment(ITValidatorMessageWithLabel.class);
        deployment.archive().addClass(ValidatorBean.class);

        final String messageBundle = ITValidatorMessageWithLabel.class.getPackage().getName() + ".MessagesWithLabels";
        final String messageBundleResource = messageBundle.replace('.', '/') + ".properties";

        addIndexPage(deployment);

        deployment.archive().addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
        deployment.archive().addAsResource(messageBundleResource);

        deployment.facesConfig(new Function<WebFacesConfigDescriptor, WebFacesConfigDescriptor>() {
            @Override
            public WebFacesConfigDescriptor apply(@Nullable WebFacesConfigDescriptor input) {
                return input.getOrCreateApplication()
                    .messageBundle(messageBundle).up();
            }
        });

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

Examples of org.richfaces.integration.RichDeployment

@RunAsClient
public class ITFacesBeanValidator extends GraphValidationTestBase {

    @Deployment(testable = false)
    public static WebArchive deployment() {
        RichDeployment deployment = new RichDeployment(ITFacesBeanValidator.class);

        deployment.archive().addClasses(GraphBean.class, Group.class);

        deployment.webXml(new Function<WebAppDescriptor, WebAppDescriptor>() {
            public WebAppDescriptor apply(WebAppDescriptor webXml) {
                 webXml.createContextParam()
                     .paramName("javax.faces.validator.DISABLE_DEFAULT_BEAN_VALIDATOR")
                     .paramValue("true");
                 return webXml;
            }
        });

        ITGraphValidation.addIndexPage(deployment);

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

Examples of org.richfaces.integration.RichDeployment

    @FindBy(id = "secondForm:renderFirstForm")
    private WebElement renderFirstFormFromSecondForm;

    @Deployment
    public static WebArchive createDeployment() {
        RichDeployment deployment = new RichDeployment(ITFocusPreserve.class);

        addIndexPage(deployment);

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

Examples of org.richfaces.integration.RichDeployment

@RunAsClient
public class ITClientValidation extends ValidationTestBase {

    @Deployment(testable = false)
    public static WebArchive deployment() {
        RichDeployment deployment = new RichDeployment(ITClientValidation.class);

        deployment.archive().addClasses(Bean.class);

        addIndexPage(deployment);

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

Examples of org.richfaces.integration.RichDeployment

    @ArquillianResource
    private URL contextPath;

    @Deployment
    public static WebArchive createDeployment() {
        RichDeployment deployment = new RichDeployment(ITFocusValidationAware.class);

        deployment.archive()
            .addClasses(ComponentBean.class, VerifyFocusCandidates.class, AbstractComponentAssertion.class)
            .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");

        addIndexPage(deployment);

        return deployment.getFinalArchive();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.