assertEquals("test2", page.getName());
}
public void testPage() throws Exception
{
Page page = storage.getPage("portal::test::test1");
assertNotNull(page);
//
assertEquals("test_title", page.getTitle());
assertEquals("test_factory_id", page.getFactoryId());
assertTrue(Arrays.equals(new String[]{"test_access_permissions"}, page.getAccessPermissions()));
assertEquals("test_edit_permission", page.getEditPermission());
assertEquals(true, page.isShowMaxWindow());
//
List<ModelObject> children = page.getChildren();
assertEquals(2, children.size());
//
Container container1 = (Container)children.get(0);
assertEquals("container_1", container1.getName());