Package org.apache.myfaces.test.el

Examples of org.apache.myfaces.test.el.MockMethodExpression


        }
    }
   
    public void testValidateNotCallValueChangeListenerWhenCallValidateWithBinding()
    {
        MethodExpression itemValue = new MockMethodExpression("#{valueChangeBean.changeValue}",
                new Class[]{ValueChangeEvent.class} , MyMockValueChangeBean.class);
        externalContext.getRequestMap().put("valueChangeBean", new MyMockValueChangeBean());
        input.setValueChangeListener(new _MethodExpressionToMethodBinding(itemValue));
       
        request.setAttribute("mockValidator",new MyMockValidatorBean());
View Full Code Here


        assertNotNull(input.getSubmittedValue());
    }
   
    public void testValidateNotCallValueChangeListenerWhenCallValidateWithValidator()
    {
        MethodExpression itemValue = new MockMethodExpression("#{valueChangeBean.changeValue}",
                new Class[]{ValueChangeEvent.class} , MyMockValueChangeBean.class);
        externalContext.getRequestMap().put("valueChangeBean", new MyMockValueChangeBean());
        input.setValueChangeListener(new _MethodExpressionToMethodBinding(itemValue));
       
        input.addValidator(new Validator(){
View Full Code Here

        }
    }
   
    public void testValidateNotCallValueChangeListenerWhenCallValidateWithBinding()
    {
        MethodExpression itemValue = new MockMethodExpression("#{valueChangeBean.changeValue}",
                new Class[]{ValueChangeEvent.class} , MyMockValueChangeBean.class);
        externalContext.getRequestMap().put("valueChangeBean", new MyMockValueChangeBean());
        input.setValueChangeListener(new _MethodExpressionToMethodBinding(itemValue));
       
        request.setAttribute("mockValidator",new MyMockValidatorBean());
View Full Code Here

        assertNotNull(input.getSubmittedValue());
    }
   
    public void testValidateNotCallValueChangeListenerWhenCallValidateWithValidator()
    {
        MethodExpression itemValue = new MockMethodExpression("#{valueChangeBean.changeValue}",
                new Class[]{ValueChangeEvent.class} , MyMockValueChangeBean.class);
        externalContext.getRequestMap().put("valueChangeBean", new MyMockValueChangeBean());
        input.setValueChangeListener(new _MethodExpressionToMethodBinding(itemValue));
       
        input.addValidator(new Validator(){
View Full Code Here

TOP

Related Classes of org.apache.myfaces.test.el.MockMethodExpression

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.