super.tearDown();
}
public void testSiteLayout() throws Exception
{
PortalConfig pConfig = storage.getPortalConfig(PortalConfig.PORTAL_TYPE, "classic");
assertNotNull(pConfig);
assertNotNull("The Group layout of " + pConfig.getName() + " is null", pConfig.getPortalLayout());
pConfig = storage.getPortalConfig(PortalConfig.GROUP_TYPE, "/platform/administrators");
assertNotNull(pConfig);
assertNotNull("The Group layout of " + pConfig.getName() + " is null", pConfig.getPortalLayout());
assertTrue(pConfig.getPortalLayout().getChildren() != null && pConfig.getPortalLayout().getChildren().size() > 1);
pConfig.getPortalLayout().getChildren().clear();
storage.save(pConfig);
pConfig = storage.getPortalConfig(PortalConfig.GROUP_TYPE, "/platform/administrators");
assertNotNull(pConfig);
assertNotNull("The Group layout of " + pConfig.getName() + " is null", pConfig.getPortalLayout());
assertTrue(pConfig.getPortalLayout().getChildren() != null && pConfig.getPortalLayout().getChildren().size() == 0);
pConfig = storage.getPortalConfig(PortalConfig.USER_TYPE, "root");
assertNotNull(pConfig);
assertNotNull("The User layout of " + pConfig.getName() + " is null", pConfig.getPortalLayout());
pConfig = storage.getPortalConfig(PortalConfig.USER_TYPE, "mary");
assertNotNull(pConfig);
assertNotNull("The User layout of " + pConfig.getName() + " is null", pConfig.getPortalLayout());
}