Package org.jboss.seam.faces.environment

Examples of org.jboss.seam.faces.environment.LocaleProducer


    @Test
    public void testReturnsSupportedLocales() {
        new MockFacesContext().set();
        FacesContext ctx = FacesContext.getCurrentInstance();
        Iterator<Locale> supportedLocales = ctx.getApplication().getSupportedLocales();
        List<Locale> supportedLocales2 = new LocaleProducer().getSupportedLocales(ctx);
        assertArrayEquals(toArray(supportedLocales), toArray(supportedLocales2.iterator()));
    }
View Full Code Here


    @Test
    public void testReturnsDefaultLocale() {
        new MockFacesContext().set();
        FacesContext ctx = FacesContext.getCurrentInstance();
        assertSame(new LocaleProducer().getDefaultFacesLocale(ctx), ctx.getApplication().getDefaultLocale());
    }
View Full Code Here

TOP

Related Classes of org.jboss.seam.faces.environment.LocaleProducer

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.