Package org.lightadmin.api.config.unit

Examples of org.lightadmin.api.config.unit.ScreenContextConfigurationUnit


public class DefaultScreenContextConfigurationUnitBuilderTest {

    @Test
    public void defaultConfigurationUnitCreatedForDomainType() throws Exception {
        ScreenContextConfigurationUnit configurationUnit = screenContextBuilder().build();

        assertEquals(DomainConfigurationUnitType.SCREEN_CONTEXT, configurationUnit.getDomainConfigurationUnitType());
        assertEquals(DomainType.class, configurationUnit.getDomainType());
    }
View Full Code Here


        return new DefaultScreenContextConfigurationUnitBuilder(DomainType.class);
    }

    @Test
    public void defaultConfigurationUnitWithUndefinedScreenNameCreated() throws Exception {
        ScreenContextConfigurationUnit configurationUnit = screenContextBuilder().build();

        assertEquals("DomainType", configurationUnit.getScreenName());
    }
View Full Code Here

        assertEquals("DomainType", configurationUnit.getScreenName());
    }

    @Test
    public void configurationWithScreenNameDefined() throws Exception {
        ScreenContextConfigurationUnit configurationUnit = screenContextBuilder().screenName("Test Screen Name").build();

        assertEquals("Test Screen Name", configurationUnit.getScreenName());
    }
View Full Code Here

        assertEquals("Test Screen Name", configurationUnit.getScreenName());
    }

    @Test
    public void configurationFullPacked() throws Exception {
        ScreenContextConfigurationUnit configurationUnit = screenContextBuilder().screenName("Test Screen Name").build();

        assertEquals("Test Screen Name", configurationUnit.getScreenName());
    }
View Full Code Here

TOP

Related Classes of org.lightadmin.api.config.unit.ScreenContextConfigurationUnit

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.