Package com.github.eclipsecolortheme.test.mock

Examples of com.github.eclipsecolortheme.test.mock.MockEclipsePreferences


        mapping = new ColorThemeMapping("org.eclipse.php.ui.color", "foreground");
    }

    @Test
    public void putPreferences() {
        MockEclipsePreferences preferences = new MockEclipsePreferences();
        ColorThemeSetting setting = new ColorThemeSetting("#336699");
        mapping.putPreferences(preferences, setting);
        assertThat(preferences.get("org.eclipse.php.ui.color", null), is("51,102,153"));
    }
View Full Code Here


        assertThat(preferences.get("org.eclipse.php.ui.color", null), is("51,102,153"));
    }

    @Test
    public void removePreferences() {
        MockEclipsePreferences preferences = new MockEclipsePreferences();
        mapping.putPreferences(preferences, new ColorThemeSetting("#336699"));
        mapping.removePreferences(preferences);
        assertThat(preferences.get("org.eclipse.php.ui.color", null), nullValue());
    }
View Full Code Here

    private ColorThemeSetting setting;

    @Before
    public void setUp() {
        mapping = new ColorThemeSemanticHighlightingMapping("something", "foreground");
        mockPreferences = new MockEclipsePreferences();
        setting = new ColorThemeSetting("#336699");
    }
View Full Code Here

TOP

Related Classes of com.github.eclipsecolortheme.test.mock.MockEclipsePreferences

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.