Package de.agilecoders.wicket.core.markup.html.themes.bootstrap

Examples of de.agilecoders.wicket.core.markup.html.themes.bootstrap.BootstrapTheme


*/
public class SingleThemeProviderTest {

    @Test
    public void availableThemesReturnsSingleTheme() throws Exception {
        ITheme theme = new BootstrapTheme();
        ThemeProvider provider = new SingleThemeProvider(theme);

        assertThat(provider.available().size(), is(1));
        assertThat(provider.available(), hasItem(theme));
    }
View Full Code Here


        assertThat(provider.available(), hasItem(theme));
    }

    @Test
    public void defaultThemeReturnsSingleTheme() throws Exception {
        ITheme theme = new BootstrapTheme();
        ThemeProvider provider = new SingleThemeProvider(theme);

        assertThat(provider.defaultTheme(), is(theme));
    }
View Full Code Here

        assertThat(provider.defaultTheme(), is(theme));
    }

    @Test
    public void byNameReturnsSingleTheme() throws Exception {
        ITheme theme = new BootstrapTheme();
        ThemeProvider provider = new SingleThemeProvider(theme);

        assertThat(provider.byName("a"), is(theme));
        assertThat(provider.byName("b"), is(theme));
        assertThat(provider.byName("c"), is(theme));
View Full Code Here

     * Construct.
     *
     * @param settings the bootstrap settings
     */
    public DefaultThemeProvider(IBootstrapSettings settings) {
        addDefaultTheme(new BootstrapTheme(settings));
    }
View Full Code Here

    /**
     * Construct.
     */
    @Deprecated
    public DefaultThemeProvider() {
        addDefaultTheme(new BootstrapTheme());
    }
View Full Code Here

TOP

Related Classes of de.agilecoders.wicket.core.markup.html.themes.bootstrap.BootstrapTheme

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.