Package org.apache.rave.portal.model

Examples of org.apache.rave.portal.model.PageTemplate



    @Test
    public void getDefaultUserPage_valid(){
        // get default page template
        PageTemplate pt = pageTemplateRepository.getDefaultPage(PageType.USER);
        // default page tests
        assertNotNull(pt);
        assertEquals("User profile pages", pt.getDescription());
        assertEquals("User Profile", pt.getName());
        assertEquals(PageType.USER, pt.getPageType());
        assertEquals(0, pt.getRenderSequence());
        assertTrue(pt.isDefaultTemplate());
        assertEquals("# of regions for parent page", 1, pt.getPageTemplateRegions().size());
        assertEquals("person_profile", pt.getPageLayout().getCode());
        assertEquals("# of widgets on parent page region", 2, pt.getPageTemplateRegions().get(0).getPageTemplateWidgets().size());

        // parent page region tests
        PageTemplateRegion ptRegion1 = pt.getPageTemplateRegions().get(0);
        assertEquals(pt.getEntityId(), ptRegion1.getPageTemplate().getEntityId());
        assertEquals(0, ptRegion1.getRenderSequence());
        assertEquals(2, ptRegion1.getPageTemplateWidgets().size());
        assertTrue(ptRegion1.isLocked());
        // parent page region 1 widget 1 tests
        PageTemplateWidget ptw1 = ptRegion1.getPageTemplateWidgets().get(0);
View Full Code Here

TOP

Related Classes of org.apache.rave.portal.model.PageTemplate

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.