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

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


    }

    @Test
    public void persistablesAreSaved() throws Exception {
        PersistableFixture persistable = new PersistableFixture();
        PropertiesFixture properties = new PropertiesFixture();

        dataLayer.registerPersistable(persistable);
        dataLayer.saveState("test_prefix", properties);

        Assert.assertTrue(persistable.stateSaved);
View Full Code Here


    private static final String TEST_PREFIX = "TEST_PREFIX";
    private PropertiesFixture propertiesFixture;

    @Before
    public void setup() {
        propertiesFixture = new PropertiesFixture()
                .addStyleProperties(TEST_PREFIX);
    }
View Full Code Here

                HorizontalAlignmentEnum.RIGHT);

        handlerUnderTest.stylesToPersist.put("label1", style1);
        handlerUnderTest.stylesToPersist.put("label2", style2);

        PropertiesFixture propertiesFixture = new PropertiesFixture();
        handlerUnderTest.saveState("prefix", propertiesFixture);

        assertEquals(
                HorizontalAlignmentEnum.LEFT.name(),
                propertiesFixture
                        .getProperty("prefix.userDefinedColumnStyle.label1.style.horizontalAlignment"));
        assertEquals(
                HorizontalAlignmentEnum.RIGHT.name(),
                propertiesFixture
                        .getProperty("prefix.userDefinedColumnStyle.label2.style.horizontalAlignment"));
    }
View Full Code Here

        assertEquals(0, properties.size());
    }

    @Test
    public void loadStateForMultipleLabels() throws Exception {
        PropertiesFixture propertiesFixture = new PropertiesFixture()
                .addStyleProperties(
                        "prefix.userDefinedColumnStyle.USER_EDITED_STYLE_FOR_INDEX_0")
                .addStyleProperties(
                        "prefix.userDefinedColumnStyle.USER_EDITED_STYLE_FOR_INDEX_1");
View Full Code Here

    }

    @Test
    public void loadStateForMultipleMixedLabels() throws Exception {
        PropertiesFixture propertiesFixture = new PropertiesFixture()
                .addStyleProperties(
                        "prefix.userDefinedColumnStyle.USER_EDITED_STYLE_FOR_INDEX_0")
                .addStyleProperties(
                        "prefix.userDefinedColumnStyle.USER_EDITED_STYLE_FOR_INDEX_1")
                .addStyleProperties(
View Full Code Here

TOP

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

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.