Examples of SimulatedUserInformation


Examples of org.apache.myfaces.extensions.validator.test.beanval.model.SimulatedUserInformation

        checkMessageSeverities(FacesMessage.SEVERITY_ERROR, FacesMessage.SEVERITY_ERROR);
    }

    public void testGroup2AwareValidationWithRoleAdmin()
    {
        createRequestScopedBean("currentUser", new SimulatedUserInformation("admin"));
        createValueBindingForComponent(this.inputComponent1, "#{testBean.model4.property1}");
        createValueBindingForComponent(this.inputComponent2, "#{testBean.model4.property2}");
        setValueToValidate(this.inputComponent1, "g"); //don't force a violation with Group1
        setValueToValidate(this.inputComponent2, "");
View Full Code Here

Examples of org.apache.myfaces.extensions.validator.test.beanval.model.SimulatedUserInformation

        checkMessageSeverities(FacesMessage.SEVERITY_ERROR);
    }

    public void testGroup2AndGroup3AwareValidationWithRoleUser()
    {
        createRequestScopedBean("currentUser", new SimulatedUserInformation("user"));
        createValueBindingForComponent(this.inputComponent1, "#{testBean.model4.property1}");
        createValueBindingForComponent(this.inputComponent2, "#{testBean.model4.property2}");
        setValueToValidate(this.inputComponent1, "g");
        setValueToValidate(this.inputComponent2, "p");
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.