Package org.apache.myfaces.tobago.internal.mock.faces

Examples of org.apache.myfaces.tobago.internal.mock.faces.MockTheme


    super.setUp();

    // Tobago specific extensions

    final TobagoConfigImpl tobagoConfig = new TobagoConfigImpl();
    final Theme theme = new MockTheme("default", "Default Mock Theme", Collections.<Theme>emptyList());
    final Theme one = new MockTheme("one", "Mock Theme One", Arrays.asList(theme));
    final Map<String, Theme> availableThemes = new HashMap<String, Theme>();
    availableThemes.put(theme.getName(), theme);
    availableThemes.put(one.getName(), one);
    tobagoConfig.setAvailableThemes(availableThemes);
    tobagoConfig.resolveThemes();
    tobagoConfig.initProjectState(servletContext);
    tobagoConfig.initDefaultValidatorInfo();
    servletContext.setAttribute(TobagoConfig.TOBAGO_CONFIG, tobagoConfig);
View Full Code Here

TOP

Related Classes of org.apache.myfaces.tobago.internal.mock.faces.MockTheme

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.