Package org.apache.myfaces.extensions.cdi.message.impl

Examples of org.apache.myfaces.extensions.cdi.message.impl.ELAwareMessageInterpolator


        fail();
    }

    private ELAwareMessageInterpolator createELAwareInterpolator()
    {
        return new ELAwareMessageInterpolator(new TestELProvider());
    }
View Full Code Here


    }

    @Test
    public void createMessageWithLocalizableNamedAttributeTest()
    {
        this.messageContext.config().change().messageInterpolator(new ELAwareMessageInterpolator(new TestELProvider())).create();

        String messageText = this.messageContext.message().text("{brand_info}").namedArgument("brand", new TestCar()).toText();

        assertEquals("value: jCar", messageText);
    }
View Full Code Here

    {
        TestArgument dynArgument = new TestArgument("brand_key");

        assertEquals("{brand_key}", dynArgument.getKey());

        String messageText = this.messageContext.config().use().messageInterpolator(new ELAwareMessageInterpolator(new TestELProvider())).create()
                .message().text("{brand_info}").namedArgument("brand", dynArgument.getKey()).toText();

        assertEquals("jCar", dynArgument.toString(this.messageContext));
        assertEquals("value: jCar", messageText);
    }
View Full Code Here

            }
        };

        assertEquals("brand-value", dynArgument.getKey());

        String messageText = this.messageContext.config().use().messageInterpolator(new ELAwareMessageInterpolator(new TestELProvider())).create()
                .message().text("{brand_info}").namedArgument("brand", dynArgument.getKey()).toText();

        assertEquals("value: brand-value", messageText);
    }
View Full Code Here

TOP

Related Classes of org.apache.myfaces.extensions.cdi.message.impl.ELAwareMessageInterpolator

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.