Examples of InnerBean


Examples of com.sun.faces.cactus.TestBean.InnerBean

        valueExpression = this.create("TestBean.readOnly");
        assertTrue(valueExpression.isReadOnly(getFacesContext().getELContext()));
        valueExpression = this.create("TestBean.one");
        assertTrue(!valueExpression.isReadOnly(getFacesContext().getELContext()));

        InnerBean inner = new InnerBean();
        testBean.setInner(inner);
        valueExpression = this.create("TestBean[\"inner\"].customers[1]");
        assertTrue(!valueExpression.isReadOnly(getFacesContext().getELContext()));

    }
View Full Code Here

Examples of com.sun.faces.cactus.TestBean.InnerBean

                "java.lang.String"));
        valueExpression = this.create("TestBean.one");
        assertTrue(valueExpression.getType(getFacesContext().getELContext()).getName().equals(
                "java.lang.String"));

        InnerBean inner = new InnerBean();
        testBean.setInner(inner);
        valueExpression = this.create("TestBean[\"inner\"].customers[1]");
        assertTrue(valueExpression.getType(getFacesContext().getELContext()).getName().equals(
                "java.lang.Object"));
View Full Code Here

Examples of com.sun.faces.cactus.TestBean.InnerBean

// General Methods
//

    public void testScopedLookup() {
        TestBean testBean = new TestBean();
        InnerBean newInner, oldInner = new InnerBean();
        testBean.setInner(oldInner);
        VariableResolver variableResolver =
            getFacesContext().getApplication().getVariableResolver();
        Object result = null;
        getFacesContext().getExternalContext().getSessionMap().remove(
View Full Code Here

Examples of com.sun.faces.cactus.TestBean.InnerBean

    public void testSet() throws Exception {
        FacesContext facesContext = getFacesContext();
        System.out.println("Testing setValue() with model bean in session ");
        TestBean testBean = new TestBean();
        InnerBean inner = new InnerBean();
        Inner2Bean innerInner = new Inner2Bean();
        Object result = null;

        getFacesContext().getExternalContext().getSessionMap().put("TestBean",
                                                                   testBean);
        boolean exceptionThrown = false;
        System.setProperty(TestBean.PROP, TestBean.FALSE);
        valueBinding = this.create("TestBean.one");
        valueBinding.setValue(getFacesContext(), "one");
        assertTrue(System.getProperty(TestBean.PROP).equals(TestBean.TRUE));

        InnerBean newInner = new InnerBean();
        valueBinding = this.create("TestBean.inner");
        valueBinding.setValue(getFacesContext(), newInner);
        result = valueBinding.getValue(getFacesContext());
        assertTrue(result == newInner);
       
View Full Code Here

Examples of com.sun.faces.cactus.TestBean.InnerBean

    public void testSetNull() throws Exception {
        FacesContext facesContext = getFacesContext();
        System.out.println(
            "Testing setValue() with model bean in session with null rValues");
        TestBean testBean = new TestBean();
        InnerBean inner = new InnerBean();
        Inner2Bean innerInner = new Inner2Bean();

        getFacesContext().getExternalContext().getSessionMap().put("TestBean",
                                                                   testBean);
View Full Code Here

Examples of com.sun.faces.cactus.TestBean.InnerBean

    public void testSetWithNoCurlyBraces() throws Exception {
        FacesContext facesContext = getFacesContext();
        System.out.println("Testing setValue() with model bean in request ");
        TestBean testBean = new TestBean();
        InnerBean inner = new InnerBean();
        Inner2Bean innerInner = new Inner2Bean();

        facesContext.getExternalContext().getSessionMap().remove("TestBean");
        facesContext.getExternalContext().getRequestMap().put("TestBean",
                                                              testBean);
View Full Code Here

Examples of com.sun.faces.cactus.TestBean.InnerBean

    public void testGet() throws Exception {
        FacesContext facesContext = getFacesContext();
        System.out.println("Testing getValue() with model bean in context");
        assertTrue(facesContext != null);
        TestBean testBeanResult = null, testBean = new TestBean();
        InnerBean inner = new InnerBean();
        Inner2Bean inner2 = new Inner2Bean();
        String result;

        // Init the beans
        testBean.setOne("one");
        inner.setTwo("two");
        inner2.setThree("three");
        inner.setInner2(inner2);
        testBean.setInner(inner);

        assertTrue(facesContext != null);
        assertTrue(facesContext.getExternalContext().getSession(false) != null);
View Full Code Here

Examples of stubs.validation.InnerBean

    public void setUp() throws Exception {
        stringBean = new StringBean();
        numberBean = new NumberBean();
        numberBean.setDoubleNumber(2);
        dateBean = new DateBean();
        innerBean = new InnerBean();
        innerBean.setInnerBean(new InnerBeanExtension());
        innerBean.setStringProperty("abcd");
        validationVisitor = new ValidationVisitor();
        collectionBean = new CollectionBean();
    }
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.