Package org.eclipse.nebula.widgets.nattable.test.fixture

Examples of org.eclipse.nebula.widgets.nattable.test.fixture.CellStyleFixture


    @Test
    public void persistStyleSettingsToProperties() throws Exception {
        Properties properties = new Properties();
        StylePersistor.saveStyle(TEST_PREFIX, properties,
                new CellStyleFixture());

        String expectedPrefix = TEST_PREFIX + DOT + STYLE_PERSISTENCE_PREFIX
                + DOT;

        assertEquals(
View Full Code Here


    }

    @Test
    public void doCommand() throws Exception {
        handlerUnderTest.dialog = new ColumnStyleEditorDialog(new Shell(),
                new CellStyleFixture());
        handlerUnderTest.applySelectedStyleToColumns(commandFixture,
                new int[] { 0 });

        Style selectedStyle = (Style) configRegistryFixture.getConfigAttribute(
                CELL_STYLE, NORMAL, handlerUnderTest.getConfigLabel(0));
View Full Code Here

        assertEquals(12, i);
    }

    @Test
    public void saveStateForMultipleLabels() throws Exception {
        CellStyleFixture style1 = new CellStyleFixture(
                HorizontalAlignmentEnum.LEFT);
        CellStyleFixture style2 = new CellStyleFixture(
                HorizontalAlignmentEnum.RIGHT);

        handlerUnderTest.stylesToPersist.put("label1", style1);
        handlerUnderTest.stylesToPersist.put("label2", style2);
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.test.fixture.CellStyleFixture

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.