Portlets rootPortletSet = null;
ProfileLocator currentLocator = null;
ProfileLocator newLocator = null;
PsmlController controller = null;
PsmlPortlets portlets = null;
PsmlSkin skin = null;
// Create the RunData object to be used during testing.
rundata = RunDataFactory.getRunData( request, response, config );
assertNotNull( "Got rundata", rundata);
TurbineTestUtilities.setupRunData(rundata);
// Verify we have a profile
Profile profile = Profiler.getProfile(rundata);
assertNotNull( "Got profile from Profiler", profile);
// Verify the profile location information in the profile
if (profile instanceof ProfileLocator)
{
currentLocator = (ProfileLocator) profile;
}
newLocator = Profiler.createLocator();
newLocator.setGroupByName(TEST_GROUP);
newLocator.setMediaType(currentLocator.getMediaType());
newLocator.setName(TEST_SECURITY_PAGE);
// Create portlet set
portlets = new PsmlPortlets();
controller = new PsmlController();
controller.setName("RowController");
portlets.setController(controller);
skin = new PsmlSkin();
skin.setName("orange-red");
portlets.setSkin(skin);
rootPortletSet = portlets;
portlets = new PsmlPortlets();
// Add entries